这是官方给的布局代码 <view class="section"> <view class="section__title">vertical scroll</view> <scroll-view scroll-y style ...
这是官方给的布局代码 <view class="section"> <view class="section__title">vertical scroll</view> <scroll-view scroll-y style ...
记得需要在父元素上设置white-space:nowrap; ...
官方文档给的代码复制下来发现无法滚动,没反应,使用css设置浮动属性也无效 官方没有给出css代码,横向需要设置两个css属性才行: 现在我们只要横向滚动的代码出来在加上上面的css就可以横向滚动啦 ...
wxml: <scroll-view class="pick_tab_box" scroll-x> <view id='tabOne' class='{{currentTab === 0 ? "tab_active" : ""}} tabItem' bindtap ...
在wxss文件上加上 ::-webkit-scrollbar{ width: 0; height: 0; color: transparent; } ...
1.wxml 2.js 滚动条样式修改(滚动条隐藏) ...
效果图 实现代码 index.wxml <scroll-view scroll-x="true" class="scroll-view-x" style="padding-top:10rpx" scroll-with-animation="true" wx:if="{{tlist ...