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!