swiper 逆向轮播

在调用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布局。
原文地址:https://www.cnblogs.com/hellman/p/10773799.html