語法
盒模型計算方式box-sizing
Setting how the total width and height of an element is calculated.
Overview
Class | Declarations |
---|---|
box-sizing:value | box-sizing: value;
|
box:content | box-sizing: content-box;
|
box:border | box-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>