語法

滾動行為scroll-behavior

Setting the scrolling behavior for a scrolling box.

Overview

ClassDeclarations
scroll-behavior:valuescroll-behavior: value;
scroll-behavior:autoscroll-behavior: auto;
scroll-behavior:smoothscroll-behavior: smooth;

Conditionally apply

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

<div class="scroll-behavior:auto:hover scroll-behavior:auto@sm scroll-behavior:auto@dark scroll-behavior:auto@print">…</div>

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy