- 查看官方文档发现:
<scroll-view scroll-x="true" scroll-with-animation="{{true}}" enhanced="true" show-scrollbar="false" scroll-into-view="{{toView}}" class="category">
结果:只能隐藏静态下的滚动条,容器内容滚动的时候会出现
- 在 1 的基础上再用样式控制:
::-webkit-scrollbar { width: 0; height: 0; color: transparent; }
结果:实现了动态下滚动条的隐藏
- ok~