首页 > 其他 > 详细

组件的学习

时间:2017-02-19 13:57:55      阅读:210      评论:0      收藏:0      [点我收藏+]

1.Swipe组件的学习:

<!--index.wxml-->
<view class="container">
<swiper indicator-dots="true"
  autoplay="true" interval="3000" duration="1000" style = "width: 300px">
    <swiper-item>
        <image src="http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" class="slide-image" width="355" height="150"/>
    </swiper-item>
    <swiper-item>
      <image src="http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" class="slide-image" width="355" height="150"/>
    </swiper-item>
    <swiper-item>
      <image src="http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" class="slide-image" width="355" height="150"/>
    </swiper-item>
</swiper>
</view>

注意要指定swipe的宽度,否则将不显示,因为默认width是0.

运行结果如下:

技术分享

 

组件的学习

原文:http://www.cnblogs.com/pengsi/p/6415445.html

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