The solution of Min-width in IE6 is invalid.

Source: Internet
Author: User

1.Min-Width

Standard browser and IE7 +: Min-width: 1008px;

In this way, the adaptive layout can be ensured that the layout is not smaller than a certain width, while the layout of the wide screen or narrow screen window is not automatically wrapped after being dragged by the user.

CSS expressions used for the following simulated implementations of IE6:

_ Width: expression (documentelement. clientwidth <1008 )? "1008px": "Auto ");

2.Max-Width

For standard browsers and IE7 +: Max-width: 600px;

In reality, layout elements such as divout {width: 100%; max-width: 1008px; margin: 0 auto;} are not larger than Px in the wide screen, but here we allow the window size to be changed to hours to adapt.

For exampleArticlePage, IMG {max-width: 600px;} is displayed for the image. we ensure that the image is not larger than the width of the container in our article content to avoid incomplete display.

CSS expressions used for the following simulated implementations of IE6:

_ Width: expression (documentelement. clientwidth> 600 )? "600px": "Auto ");

Code

Learning...

I think the CSS + Div layout is really terrible in IE6. This is just a small patch. I believe that CSS will not be terrible if it has been accumulated all the time!

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.