【问题标题】:Unslider dots size appearing too largeUnslider 点的大小显得太大
【发布时间】: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


    【解决方案1】:

    1]您已将.banner li 设置为min-height:256px; min-width:960px;。

    2] 只需将min-height:none; 和min-width:none; 添加到您的.dots li CSS 声明即可。

    改变这个:

    .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 
    {
    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;
    
    min-height:none;
    min-width:none;
    }
    

    【讨论】:

    • 完美,完成了工作。非常感谢,我确信问题出在点本身的样式中我想我忽略了横幅 li 样式也适用于点。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-26
    • 2017-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多