Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在一个简单的 create-react-app 应用程序中实现 css scroll-snap api。而且它似乎不起作用。
所以,我想知道它是否受支持,或者是否有一种特殊的方法可以通过反应来做到这一点?
帮助我解决问题的是 scroll-snap-type 属性必须附加到 html 标记:
html { scroll-snap-type: y mandatory; }