Min-width in IE6-standard mode and Quirk Mode

Source: Internet
Author: User

Source code:

Trigger and take advantage of the weird characteristics of the IE6-layout, CSS implementation:

CopyCode The Code is as follows: <style type = "text/CSS">

. Ie6-out {
_ Margin-left: 900px;
_ ZOOM: 1;
}
. Ie6-in {
_ Position: relative;
_ Float: left;
_ Margin-left:-900px;
}
# Min-width {
Min-width: 900px;
Background: # CCC;
Line-Height: 200px;
_ ZOOM: 1;
}
</Style>

<Div class = "ie6-out">
<Div class = "ie6-in">
<Div id = "Min-width"> IE6-lower, the container simulates the Min-width effect. Change the browser window size and click "view width ". </Div>
</Div>
</Div>

CSS implementation Demonstration:

Run code box

<textarea id="runcode65234"></textarea> Xmlns = "http://www.jb51.net/xhtml">


Under AA aaie6-, the container simulates the Min-width effect. Change the browser window size and click "view width ".

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.