English
CSS 属性 min-height 能够设置元素的最小高度。这样能够防止 height 属性的应用值小于 min-height 的值。
min-height: <length>;
fit-content
Use the fit-content inline size or fit-content block size, as appropriate to the writing mode.
max-content
The intrinsic preferred min-height.
min-content
The intrinsic minimum min-height.
auto
浏览器将通过计算为指定元素选择一个 min-height 值。
none
不限制盒容器的尺寸。
| Platform | default |
|---|---|
| app-uvue | 0px |
| web | auto |
| Android version | Android uni-app | Android uni-app-x | iOS version | iOS uni-app | iOS uni-app-x | |
|---|---|---|---|---|---|---|
| min-height | 5.0 | √ | 3.9+ | 9.0 | √ | - |
| fit-content | 5.0 | √ | x | 9.0 | √ | x |
| max-content | 5.0 | √ | x | 9.0 | √ | x |
| min-content | 5.0 | √ | x | 9.0 | √ | x |
| auto | 5.0 | √ | x | 9.0 | √ | x |
| none | 5.0 | √ | x | 9.0 | √ | x |
在App端为了优化文字排版性能,不支持 auto、none、max-content、min-content、fit-content,默认值为0px。
默认值为 auto,通过计算选择一个 min-height 值。