Bonjour,
j'ai des tableaux imbriqués pour un affichage.
voici le code pour l'exemple:
Avec un DocType, sous FF mon tableau central prend bien toute la hauteur du tableau général. Sous IE, il reste au milieu sans remplir tout.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <style type="text/css"> html,body{ margin:0; padding:0; height:100%; border:none } .generaltable{ background-color:#BBBBBB; width:100%; height:100%; } .centraltable{ width:100%; height:100%; background-color:#DDDDDD; } .border{ width:150px; background-color:#555555; } .banner,.footer{ height:150px; } .txtcentral{ height:100%; } </style> </head> <body> <table border=1 class="generaltable"> <tr> <td class="border"> bordure </td> <td> <table border=1 class="centraltable"> <tr> <td class="banner"> banner </td> </tr> <tr> <td class="txtcentral"> texte central </td> </tr> <tr> <td class="footer"> footer </td> </tr> </table> </td> <td class="border"> bordure </td> </tr> </table> </body> </html>
Après avoir cherché bien longtemps dans mes css, je me suis aperçu que lorsque je vire le DocType de ma page, l'affichage de mon tableau sous IE prend enfin toute la hauteur!
j'ai essayé plusieurs doctype, je n'en trouve pas qui donne un affichage correct sous IE (mon tableau "central" reste systématiquement sur le milieu de mon tableau "général")
Lequel dois-je utiliser?![]()
Partager