【发布时间】:2014-04-25 08:01:25
【问题描述】:
我目前正在使用免费的 unslider jquery 代码组合一个滚动图片库。 我已经实现了滚动箭头,只想添加点来显示幻灯片的数量和幻灯片的位置。我在脚本中设置了点:true。
这是网站上的结果: cjeffryes.comoj.com
你可以看到我的 CSS 在某种程度上被应用了,你可以看到两张幻灯片有一个轮廓,第三张是实心的,看起来点本身很大。 CSS decalres li 点应该是 10x10px。感谢任何帮助,这是我的 CSS:
.banner
{
position:absolute;
margin-top:100px;
}
.banner li
{
list-style: none;
min-height:256px;
min-width:960px;
overflow:auto;
float:left;
}
.banner ul
{
padding: 0;
margin: 0;
float:left;
}
.dots
{
position: absolute;
left: 0;
right: 0;
bottom: 20px;
}
.dots li
{
display: inline;
width: 10px;
height: 10px;
margin: 0 4px;
text-indent: -999em;
border: 2px solid #fff;
border-radius: 600px;
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;
}
【问题讨论】:
标签: javascript jquery html css gallery