Home  >  Article  >  Web Front-end  >  Detailed explanation of CSS responsive layout compatible with IE6 method code

Detailed explanation of CSS responsive layout compatible with IE6 method code

高洛峰
高洛峰Original
2017-03-23 10:58:571535browse

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;}

Detailed explanation of CSS responsive layout compatible with IE6 method code

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn