首页 > 微信 > 详细

微信小程序scroll-view

时间:2018-08-29 11:49:04      阅读:215      评论:0      收藏:0      [点我收藏+]
<scroll-view class=‘tabli‘ scroll-x="true" scroll-left="{{navScrollLeft}}" scroll-with-animation="{{true}}">
<view class=‘item‘ wx:for="{{ arr }}" wx:for-index="idx" wx:for-item="navItem" wx:key="idx">{{navItem}}</view>
</scroll-view>
 
 
 
.tabli{
  height:80rpx;
  width:100%;
  box-sizing:border-box;
  /* overflow:hidden;
  line-height:80rpx;
  background:#f7f7f7;
  font-size:14px; */
  white-space:nowrap;
  /* position:fixed;
  top:0;
  left:0;
  z-index:99; */
}

.daohangwrap{
  width: 100%;
}

.tabli .item{
  width: 20%;
  display: inline-block;
  text-align: center;
}
 
 
 

微信小程序scroll-view

原文:https://www.cnblogs.com/geekjsp/p/9552847.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!