WeChat applet—scroll-view set scroll-x or scroll-y how to remove the scroll bar
the first method:
::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}
.scroll-view::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}
The second method: add (enhanced: show-scrollbar="false")
<scroll-view
:style="{ height: height + 'rpx' }"
scroll-x
class="scroll-view"
enhanced
:show-scrollbar="false"
>
</scroll-view>