Probleme IE avec images en fond cellule HTML

Fermé
trombine40 Messages postés 828 Date d'inscription lundi 2 juillet 2007 Statut Membre Dernière intervention 25 mars 2011 - 2 juil. 2007 à 10:07
 Lapo - 23 sept. 2008 à 17:28
j'ai un problème de cmpatibilité avec internet explorer 6 :

j'ai une page web avec un tableau, dont 2 cellules possèdent une image de fond.
pour la première cellule, rien à dire (image menu.gif) maie en revanche la 2ème image main.gif reffuse categoriquement de s'afficher avec IE6 alors que elle marche avec firefox 2.0.0.4, opera 8.54, safari 3.

voici le code du tableau :

<table style="text-align: left; width: 939px; height: 280px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width: 100px; font-weight: bold;" colspan="1" rowspan="2">
<img style="width: 85px; height: 90px;" alt="logo" src="images/logo.gif">
</td>
<td height="32" background="images/menu.gif" style="background-repeat: no-repeat; text-align: center;">
<big>
<a style="text-decoration: none; color: rgb(255, 102, 0);">accueil</a> - 
<a style="color: rgb(0, 153, 0); text-decoration: none;" href="a.html">a</a> -  
<a style="color: rgb(0, 153, 0); text-decoration: none;" href="b.html">b</a> - 
<a style="color: rgb(0, 153, 0); text-decoration: none;" href="c.html">c</a> - 
<a style="color: rgb(0, 153, 0); text-decoration: none;" href="d.html">d</a> - 
<a style="color: rgb(0, 153, 0); text-decoration: none;" href="e.html">e</a> - 
<a style="color: rgb(0, 153, 0); text-decoration: none;" href="f.html">f</a> - 
<a style="color: rgb(0, 153, 0); text-decoration: none;" href="g.html">g</a>
</big>
</td>
</tr>
<tr style="font-weight: bold;">
<td style="width: 857px;">blablabla
</td>
</tr>
<tr background="images/main.gif">
<td colspan="2" rowspan="1" style="width: 857px;">
<p>contenu de la page</p>
</td>
</tr>
</tbody>
</table>


merci d'avance pour votre aide
A voir également:

2 réponses

falcor Messages postés 61 Date d'inscription mercredi 28 avril 2004 Statut Membre Dernière intervention 26 mai 2009 2
2 juil. 2007 à 10:39
Pour ton fond essaie pour commencer de le coder ainsi:

style="background-image: url(ton image)"
1
trombine40 Messages postés 828 Date d'inscription lundi 2 juillet 2007 Statut Membre Dernière intervention 25 mars 2011 144
2 juil. 2007 à 11:04
le pb c qu'il s'agit d'un fond de cellule et non pas d'un tableau ou page entière et qu'il m'en prend un sur les 2 alors que c codé pareil
0
La première image est un fond de cellule (il s'agit d'un TD)
La seconde image est un fond de ligne (il s'agit d'un TR)
Voilà la différence entre les deux images...
0