語法

盒模型計算方式box-sizing

Setting how the total width and height of an element is calculated.

Overview

ClassDeclarations
box-sizing:valuebox-sizing: value;
box:contentbox-sizing: content-box;
box:borderbox-sizing: border-box;

Conditionally apply

Apply styles based on different states using selectors and applying conditionally.

<div class="box-sizing:1/1:hover box-sizing:1/1@sm box-sizing:1/1@dark box-sizing:1/1@print">…</div>

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy