Notes on min-height

巴扎黑
Release: 2017-06-07 15:38:28
Original
1561 people have browsed it

Method 1:
min-height:160px; Set the minimum height of the object box, applicable to Firefox and IE7+;
height:auto!important; Set the height of the object box without automatic positioning, use !important The height height positioning setting increases the priority;
height:160px; sets the height of the object. Because the attribute !important is used, this attribute is only recognized by IE6.
Method 2:
min-height:160px; Set the minimum height of the object box, applicable to Firefox and IE7+;
height:auto; Set the height of the object box without automatic setting;
_height:160px; Set the height of the object. This property is only recognized by IE6. Under IE6, this property overrides the auto property.

The float attribute cannot be used in the min-height container, otherwise it will be invalid. If used in a large container, float can be cleared internally last, example:

<div id="content">  
  <div id="left"></div>  
  <div id="right"></div>  
 <div class="clear"></div>  
</div>
Copy after login


The above is the detailed content of Notes on min-height. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!