设置元件的最小高度。它可以阻止 height
属性的应用值小于 min-height
的值。
min-height
的值会覆盖 height
,但是会被 max-height
覆盖。
0px
默认值。
<length>
<length>
定义了一个确定值。
<percentage>
定义 min-height
为一个相对于父容器高度的百分数。
初始值 | 0px |
适用元素 | 所有元件 |
是否支持继承 | 否 |
是否支持动画 | yes |
百分比 | The percentage is calculated with respect to the height of the generated box's containing block |
auto
,默认值是 0px
。none
,max-content
,min-content
,fit-content
。min-height
不会覆盖 max-height
。LCD tables only load in the browser