不知道是不是因为用了swiper页面底部出现了一个横向滚动条,影响页面美观和用户体验
解决方法:
在index.html中加入
html {
overflow-y: scroll;
}
:root {
overflow-y: auto;
overflow-x: hidden;
}
:root body {
position: absolute;
}
body {
width: 100vw;
overflow: hidden;
}
不知道是不是因为用了swiper页面底部出现了一个横向滚动条,影响页面美观和用户体验
解决方法:
在index.html中加入
html {
overflow-y: scroll;
}
:root {
overflow-y: auto;
overflow-x: hidden;
}
:root body {
position: absolute;
}
body {
width: 100vw;
overflow: hidden;
}