CSS Responsive layout compatible IE6

Source: Internet
Author: User

1, two columns layout left fixed width right adaptive

<div class= "Grid1" > <div class= "left_1" > Left fixed width </div> <div class= "right_1" > Right adaptive </DIV>&L T;/div>
. left_1{float:left; width:200px;}. right_1{margin-left:200px;}


2. Two columns layout left adaptive right width

<div class= "Grid2 clearfix" > <div class= "left_2" > Left adaptive </div> <div class= "right_2" > Right fixed width </d Iv></div>
. left_2{float:left; width:100%; margin-right:-200px;}. Right_2{float:right; width:200px;}


3, three-column layout on both sides of the fixed width of the middle adaptive

<div class= "Grid3 clearfix" > <div class= "left_3" > Left fixed width </div> <div class= "center_3" > Intermediate Adaptive </ div> <div class= "Right_3" > Right width </div></div>
. 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 columns layout left adaptive middle and right width

<div class= "Grid4 clearfix" > <div class= "Left_4" > Left adaptive </div> <div class= "center_4" > Middle fixed width </ div> <div class= "Right_4" > Right width </div></div>
. center_4,. right_4{position:relative; float:right; width:200px;}. Left_4{float:left; width:100%; margin-right:-400px;}


5, three columns layout left and middle fixed width right adaptive

<div class= "GRID5" > <div class= "left_5" > Left fixed width </div> <div class= "center_5" > Middle width </div> <div class= "Right_5" > Right adaptive </div></div>
. left_5,. center_5{position:relative; float:left;width:200px;}. right_5{margin-left:400px;}


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/88/FF/wKioL1gEiOCw4T5nAAAaIBFZeqk983.png "title=" Qq20161017160747.png "alt=" Wkiol1geiocw4t5naaaaibfzeqk983.png "/>


The above is compatible with 5 large browsers, and IE6 to IE8 browser, specific code reference accessories











This article is from the "Dapengtalk" blog, make sure to keep this source http://dapengtalk.blog.51cto.com/11549574/1862698

CSS Responsive layout compatible IE6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.