
布局
用于控制元素后列或分页如何断开的工具。
使用 break-after-* 工具来控制元素之后列或分页符的行为。例如,使用 break-after-column 工具可以在元素之后强制列分页。
🌐 Use the break-after-* utilities to control how a column or page break should behave after an element. For example, use the break-after-column utility to force a column break after an element.
<div class="columns-2">
<p>Well, let me tell you something, ...</p>
<p class="break-after-column">Sure, go ahead, laugh...</p>
<p>Maybe we can live without...</p>
<p>Look. If you think this is...</p>
</div>
Tailwind 允许你使用变体修饰符在不同状态下有条件地应用工具类。例如,使用hover:break-after-column 仅在 hover 时应用 break-after-column 工具。
<div class="hover:break-after-column">
<!-- ... -->
</div>
有关所有可用状态修饰符的完整列表,请查看悬停、聚焦、以及其他状态 文档。
你还可以使用变体修饰符来定位媒体查询,例如响应式断点、暗黑模式、首选减少运动等。例如,使用 md:break-after-column 仅在中等屏幕尺寸及以上时应用 break-after-column 工具。
<div class="md:break-after-column">
<!-- ... -->
</div>