28220 sujets
Salut,
Je pense que tu as recopié le code de KnS. Seulement, son code fait appel à un élément dont l'id est table. Donc ajoute un attribut id à ta table pour que la syntaxe de Kns soit exacte.
Plus d'info sur les sélecteurs : http://www.yoyodesign.org/doc/w3c/css2/selector.html#id-selectors
Modifié par bbp (25 Oct 2005 - 12:45)
Je pense que tu as recopié le code de KnS. Seulement, son code fait appel à un élément dont l'id est table. Donc ajoute un attribut id à ta table pour que la syntaxe de Kns soit exacte.
Plus d'info sur les sélecteurs : http://www.yoyodesign.org/doc/w3c/css2/selector.html#id-selectors
Modifié par bbp (25 Oct 2005 - 12:45)
Pour bbp
Ca fonctionne toujours pas. Je donne tout le code du tableau peut être il y a un truc qui bloque :
Et la feuille de style :
Ca fonctionne toujours pas. Je donne tout le code du tableau peut être il y a un truc qui bloque :
<table width="549" id="tableau1" border="1" cellpadding="0" cellspacing="0" >
<tr bgcolor="#799EC3">
<td height="20" colspan="5" class="textecourantblancgras10centre">VENTE
DE VAPEUR</td>
</tr>
<tr bgcolor="#E5EAF2" class="textecourantgras10centre">
<td width="42" rowspan="2">CODE</td>
<td width="184" rowspan="2">MODE D'UTILISATION </td>
<td width="165" rowspan="2">ABONNEMENT ANNUEL (prime
fixe publique) €/kW(1)</td>
<td height="19" colspan="2">CONSOMMATION</td>
</tr>
<tr>
<td width="70" height="33" bgcolor="#E5EAF2" class="textecourantgras10centre">Hiver
(2)</td>
<td width="71" bgcolor="#E5EAF2" class="textecourantgras10centre">Eté (3)</td>
</tr>
<tr>
<td height="35" colspan="3" class="textecourantgras10centre">Comptage
sur condensats - Facturation en Tonne vapeur</td>
<td width="70" height="35" class="textecourantgras10centre">€/Tonne
vapeur </td>
<td width="71" height="35" class="textecourantgras10centre"><p>€/Tonne
vapeur </p></td>
</tr>
<tr>
<td width="42" height="20" class="textecourantgras10centre">100</td>
<td width="184" height="20" class="textecourantcentre">Longue
utilisation </td>
<td width="165" height="20" class="textecourantgras10centre">23,65</td>
<td width="70" height="20" class="textecourantgras10centre">24,45</td>
<td width="71" height="20" class="textecourantgras10centre"><p>15,50</p></td>
</tr>
<tr>
<td width="42" height="20" class="textecourantgras10centre">110</td>
<td width="184" height="20" class="textecourantcentre">Utilisation
moyenne</td>
<td width="165" height="20" class="textecourantgras10centre">18,40</td>
<td width="70" height="20" class="textecourantgras10centre">27,60</td>
<td width="71" height="20" class="textecourantgras10centre">20,30</td>
</tr>
<tr>
<td width="42" height="35" class="textecourantgras10centre">120</td>
<td width="184" height="35" class="textecourantcentre">Court
utilisation, préchauffe </td>
<td width="165" height="35" class="textecourantgras10centre">7,10</td>
<td width="70" height="35" class="textecourantgras10centre">38,50</td>
<td width="71" height="35" class="textecourantgras10centre">38,50</td>
</tr>
<tr>
<td height="35" colspan="3" class="textecourantgras10centre">Comptage
sur circuit secondaire - Facturation en MWh</td>
<td width="70" height="35" class="textecourantgras10centre">€/MWh</td>
<td width="71" height="35" class="textecourantgras10centre"><p>€/MWh</p></td>
</tr>
<tr>
<td width="42" height="20" class="textecourantgras10centre">200</td>
<td width="184" height="20" class="textecourantcentre">Longue
utilisation </td>
<td width="165" height="20" class="textecourantgras10centre">23,65</td>
<td width="70" height="20" class="textecourantgras10centre">36,20</td>
<td width="71" height="20" class="textecourantgras10centre"><p>22,90</p></td>
</tr>
<tr>
<td width="42" height="20" class="textecourantgras10centre">210</td>
<td width="184" height="20" class="textecourantcentre">Utilisation
moyenne</td>
<td width="165" height="20" class="textecourantgras10centre">18,40</td>
<td width="70" height="20" class="textecourantgras10centre">40,80</td>
<td width="71" height="20" class="textecourantgras10centre">30,00</td>
</tr>
<tr>
<td width="42" height="35" class="textecourantgras10centre">220</td>
<td width="184" height="35" class="textecourantcentre">Court
utilisation, préchauffe </td>
<td width="165" height="35" class="textecourantgras10centre">7,10</td>
<td width="70" height="35" class="textecourantgras10centre">56,95</td>
<td width="71" height="35" class="textecourantgras10centre">56,95</td>
</tr>
</table>
Et la feuille de style :
#tableau1 {
border: 1px solid #BDCBE0;
}
Là c'est la solution d'Igor
table#test signifie une table dont l'identifiant est test
table#test td signife les cellules d'une table dont l'identifiant est test
http://www.yoyodesign.org/doc/w3c/css2/selector.html
Modifié par bbp (25 Oct 2005 - 14:36)
table#test signifie une table dont l'identifiant est test
table#test td signife les cellules d'une table dont l'identifiant est test
http://www.yoyodesign.org/doc/w3c/css2/selector.html
Modifié par bbp (25 Oct 2005 - 14:36)