max-height
介绍
设置元件的最大高度。它可以阻止 height 属性的应用值大于 max-height 的值。
max-height 的值会覆盖 height 和 min-height。
使用示例

语法
取值
默认盒子高度没有限制
<length>
<length> 定义了一个确定值。
<percentage>
定义作为包含区块高度百分比的 max-height。
形式定义
| 初始值 | 盒子高度没有限制 |
| 适用元素 | 所有元件 |
| 是否支持继承 | 否 |
| 是否支持动画 | yes |
| 百分比 | The percentage is calculated with respect to the height of the generated box's containing block |
形式语法
与 Web 的区别
- 不支持
none,max-content,min-content,fit-content。 - 在 Lynx 中
max-height会覆盖min-height。 - 在 Lynx 中,如果指定的
max-height小于min-height,则min-height会被忽略。
兼容性
LCD tables only load in the browser