首页 > 其他 > 详细

swiper 逆向轮播

时间:2019-04-26 14:05:05      阅读:183      评论:0      收藏:0      [点我收藏+]

在调用swiper的div上加dir="rtl"就行了,例子见下面链接

 

http://www.swiper.com.cn/demo/26-rtl.html


  <div class="swiper-container" dir="rtl">

1,html的dir属性改变排列的方向,所有浏览器都支持。
2,两个属性,ltr从左到右,默认的,left to right的缩写。
3,rtl从右到左,right to left的缩写。
4,swiper支持100%rtl布局。

swiper 逆向轮播

原文:https://www.cnblogs.com/hellman/p/10773799.html

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