1 pièce(s) jointe(s)
float IE vs FFX emuler un tableau
Je suis encore tombé dans le panneau de l'ordre de floats :(
Code:
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>gfd</title>
<style type="text/css">
html, body{ width:100%;}
div {
border: solid 1px;
height:20px;
display:block;
position:relative;
}
.col1{width:100px;}
.col2{width:250px;}
.col3{width:80px;}
.l { float:left;}
.br {clear:right;}
.t {border-top: solid 2px; }
.lb {border-left: solid 2px;}
.rb {border-right: solid 2px;}
.b {border-bottom: solid 2px;}
</style>
</head>
<body>
<div class='lb t l col1'>colonne 1</div><div class='t l col2'>colonne 2</div><div class='t col3 br rb'>colonne 3</div>
<div class='lb l col1'></div><div class='vm l col2'></div><div class='vm col3 br rb'></div>
<div class='lb l col1'></div><div class='vm l col2'></div><div class='vm col3 br rb'></div>
<div class='lb l col1'></div><div class='vm l col2'></div><div class='vm col3 br rb'></div>
<div class='lb l col1'></div><div class='vm l col2'></div><div class='vm col3 br rb'></div>
<div class='lb l col1'></div><div class='vm l col2'></div><div class='vm col3 br rb'></div>
<div class='lb l col1'></div><div class='vm l col2'></div><div class='vm col3 br rb'></div>
<div class='lb b l col1'></div><div class='b l col2'></div><div class='b col3 br rb'></div>
</body>
</html> |
Voir le resultat d'affichage en image jointe ...
Pourquoi ffx inverse-t-il les divs et en conserve-t-il pas dans l'ordre du flux ?