我正在建立一个顶部有滑块的网站,我想使用unlider,因为它看起来很容易.
根据网站你应该只使用功能 - dots: true
我有,但我的滑块没有任何幻灯片.
(这是一个学校项目)
小智 16
尝试添加一些CSS.
.dots {
position: absolute;
left: 0;
right: 0;
bottom: 20px;
text-align: center;
}
.dots li {
display: inline-block;
width: 10px;
height: 10px;
margin: 0 4px;
text-indent: -999em;
border: 2px solid #fff;
border-radius: 6px;
cursor: pointer;
opacity: .4;
-webkit-transition: background .5s, opacity .5s;
-moz-transition: background .5s, opacity .5s;
transition: background .5s, opacity .5s;
}
.dots li.active {
background: #fff;
opacity: 1;
}
Run Code Online (Sandbox Code Playgroud)