在GitHub上查看

Overflow溢出

使用这些实用工具可以快速处理溢出元素。

使用四个默认值和类动态地调整 overflow 属性。这些类默认情况下没有响应。

This is an example of using .overflow-auto on an element with set width and height dimensions. By design, this content will vertically scroll.
This is an example of using .overflow-hidden on an element with set width and height dimensions.
This is an example of using .overflow-visible on an element with set width and height dimensions.
This is an example of using .overflow-scroll on an element with set width and height dimensions.
<div class="overflow-auto">...</div>
<div class="overflow-hidden">...</div>
<div class="overflow-visible">...</div>
<div class="overflow-scroll">...</div>

使用Sass变量,您可以通过更改 _variables.scss 中的 $overflows 变量来定制溢出元素的实用工具。