Swiper中文论坛
标题:
swiper引入css和js没有自动轮播效果
[打印本页]
作者:
TF少年GO
时间:
2017-3-10 16:57
标题:
swiper引入css和js没有自动轮播效果
swiper没有自动轮播效果
<
link
rel=
"stylesheet"
href=
"swiper/swiper-3.4.1.min.css"
/>
<
script
language=
"JavaScript"
src=
"swiper/swiper-3.4.1.min.js"
></
script
>
<
body
>
<
div
class=
"swiper-container"
>
<
div
class=
"swiper-wrapper"
>
<
div
class=
"swiper-slide"
style=
"
background
:
red
"
></
div
>
<
div
class=
"swiper-slide"
style=
"
background
:
#000
"
></
div
>
<
div
class=
"swiper-slide"
style=
"
background
:
#ccc
"
></
div
>
</
div
>
</
div
>
<
script
>
var
mySwiper
=
new
Swiper
(
'.swiper-container'
,{
autoplay
:
5000
,
autoplayDisableOnInteraction
:
false
,
})
</
script
>
</
body
>
作者:
我不是路人甲
时间:
2017-3-13 11:48
我试了 可以自动轮播
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2