当前位置: 代码迷 >> Web前端 >> div之min-height跟max-height
  详细解决方案

div之min-height跟max-height

热度:484   发布时间:2014-01-09 23:07:34.0
div之min-height和max-height
-


max-height

The value of the max-height property overrides height.




min-height

The value of the min-height property overrides both max-height and height.




Default value: 0
Inherited: no
Version: CSS2
JavaScript syntax: object.style.minHeight="10px"


Example:

p
{
min-height:100px;
}








==
  相关解决方案