版权声明:本文为博主原创文章,未经博主允许不得转载 https://blog.csdn.net/sqlquan/article/details/84139363
页面代码
<scroll-view scroll-x class="my_scroll">
<view class='my_scroll_box' wx:for="{{newmenu}}" wx:for-item="i" wx:key="{{i.id}}" data-id="{{i.id}}" catchtap='formbtn'>
<text class='my_scroll_box_text'>{{i.title}}</text>
<text class='my_scroll_box_text1'>{{i.created_at}}</text>
</view>
</scroll-view>
页面wxss上加上以下样式
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
或者 加上
::-webkit-scrollbar {
display: none;
}
两种任意一种即可