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
|
<style type="text/css">
.table{
width:100%;
display:table;
}
.cell1{
background-color:blue;
display:table-cell;
}
.cell2{
width:990px;
background-color:red;
display:table-cell;
}
.cell3{
background-color:orange;
display:table-cell;
}
</style>
<!--[if lte IE 7]>
<style type="text/css">
.cell1, .cell3 {
width:expression((100 - (100 * 990 / window.document.body.clientWidth )) / 2 + "%");
float:left;
}
.cell2{
float:left;
}
</style>
<![endif]--> |
Partager