我开始做手机版的设计,当我试图在手机上快速滚动时,滚动停止了,我应该等待一段时间。
在项目中我使用fulpage js库,但这是现在的问题,我认为应该有一些溢出属性。
html, body{
font-family: sans-serif;
width: 100%;
padding: 0;
margin: 0;
// height: 100%;
height: auto;
overflow-x: hidden !important;
}Here是链接。
发布于 2020-12-21 03:42:47
在容器元素上使用scroll-snap-type: y mandatory;,在子元素上使用scroll-snap-align: start;应该可以做到这一点!
https://stackoverflow.com/questions/65383115
复制相似问题