The minimum height can be set to the minimum height of a box. When the content of a box is small, the height of the box can be kept to a certain level, and the box will be automatically extended down until now, only supported by opera and Mozilla, and IE7 was also supported at the beginning, but IE7 is in the testing stage. It may take a long time to wait for the official version to become popular, unless Ms binds it to an operating system, how can we reasonably and skillfully use it at least on the existing basis (IE6 80-90%?
Assuming there are two boxes, we need the minimum height of the box to be 150px.
CSS
Div. box1, Div. box2 {width: 300px; Min-Height: 150px; Background: # Eee; float: Left; margin-Right: 20px ;}XHTML
<Div> IE does not keep the minimum height of 150px </div> <div> the minimum height can be set to the minimum height of a box. When the content is small, it can also maintain a certain height of the box </div>
In the current results, ie does not keep the minimum height of 150px.
Solution
Set a height for IE
* HTML Div. box1, * HTML Div. box2 {Height: 150px ;}
Wellstyled.com The solution is to use the attribute selectors of CSS)
Div. box1, Div. box2 {...... height: 150px;}/* ie depends on this to keep the minimum height. If the height is exceeded, it will automatically extend down */Div [Class]. box1, div [Class]. box2 {Height: auto;}/* Div object with Class Attribute */
IE is naturally not supported. It is supported by opera and Mozilla to read this height.
Applicable scenarios: search,ArticleWait for the page (100% height is not used, when the found content is small, the page is not too short .....
Final Effect