Home > Article > Web Front-end > Detailed explanation of CSS responsive layout compatible with IE6 method code
1. Two-column layout, fixed width on the left, adaptive on the right
左侧定宽右侧自适应
.left_1{float:left; width:200px;} .right_1{margin-left:200px;}
2. Two-column layout, adaptive on the left, fixed width on the right
左侧自适应右侧定宽
.left_2{float:left; width:100%; margin-right:-200px;} .right_2{float:right; width:200px;}
3. Three-column layout, fixed width on both sides, adaptive in the middle
左侧定宽中间自适应右侧定宽
.left_3, .right_3{position:relative; float:left; width:200px;} .left_3{margin-right:-200px;} .right_3{margin-left:-200px;} .center_3{float:left; width:100%;}
4. Three-column layout, adaptive on the left, fixed width in the middle and right side
左侧自适应中间定宽右侧定宽
.center_4, .right_4{position:relative; float:right; width:200px;} .left_4{float:left; width:100%; margin-right:-400px;}
5. Three-column layout, left Side and middle fixed width, right side adaptive
左侧定宽中间定宽右侧自适应
.left_5, .center_5{position:relative; float:left;width:200px;} .right_5{margin-left:400px;}
The above writing method is compatible with 5 major browsers, and IE6 to IE8 browsers
The above is the detailed content of Detailed explanation of CSS responsive layout compatible with IE6 method code. For more information, please follow other related articles on the PHP Chinese website!