高 - custom

默认为元素

2025-04-15

Written by: tdtc

Note:
max-height 会覆盖 height,而 min-height 会覆盖 max-height。

tailwind

Fixed value

ClassStyles
max-h-nonemax-height: none;

Frequently used values

ClassStyles
max-h-<number>max-height: calc(var(--spacing) * <number>);
max-h-<fraction>max-height: calc(<fraction> * 100%);
<div class="max-h-10 bg-red-200">max-h-10</div>
<div class="max-h-1/3 bg-blue-300">max-h-1/3</div>

Ref