gpt4 book ai didi

jquery - Nivo slider 上的箭头显示问题

转载 作者:太空宇宙 更新时间:2023-11-04 14:18:02 24 4
gpt4 key购买 nike

我决定进行下一个 Jump Web 开发,我想我会使用 Nivoslider。

我无法显示箭头!尽管它们是不可见的,但它们确实有效 - 在转到下一张和上一张幻灯片时。

这是我的 NIVO CSS 代码:

    /* Nivo Slider Starts CSS starts Here */

.nivoSlider {
position:relative;
width:95%;
height:auto;
overflow: hidden;
}
.nivoSlider img {
position:absolute;

max-width: none;
}
.nivo-main-image {
display: block !important;
height: auto !important;

}

/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
border:0;
padding:0;
margin:0;
z-index:6;
display:none;
background:white;
filter:alpha(opacity=0);
opacity:0;
}
/* The slices and boxes in the Slider */
.nivo-slice {
display:block;
position:absolute;
z-index:5;
height:100%;
top:0;
}
.nivo-box {
display:block;
position:absolute;
z-index:5;
overflow:hidden;
}
.nivo-box img { display:block; }

/* Caption styles */
.nivo-caption {
position:absolute;
left:0px;
bottom:40px;
background:#000;
height:30px;
color:#fff;
width:100%;
z-index:8;
padding: 5px 10px;
opacity: 0.5;
overflow: hidden;
display: none;
-moz-opacity: 0.8;
filter:alpha(opacity=8);
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}
.nivo-caption p {
padding:5px;
margin:0;
}
.nivo-caption a {
display:inline !important;
}
.nivo-html-caption {
display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:1000;
cursor:pointer;
display:block;
height: 30px;
width: 30px;
text-indent:9999px;
background: url(arrows_1.png);
background-repeat:no-repeat;
opacity: 1; /* NEW */
-webkit-transition: all 200ms ease-in-out;
-moz-transition: all 200ms ease-in-out;
-o-transition: all 200ms ease-in-out;
transition: all 200ms ease-in-out;

}
a.nivo-prevNav {
left:15px;
}
a.nivo-nextNav {
right:15px;

}
/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav {
position: absolute;
top:600px;
padding: 15px 0;
width:100px;
float:right;


}
.nivo-controlNav a {
cursor:pointer;
}
.nivo-controlNav a.active {
font-weight:bold;
}


/* Nivo Slider Ends CSS starts Here */
/

我已经尝试了很多不同的方法,但都没有奏效,现在我的脑子都炸了。

如有任何帮助,我将不胜感激!非常感谢你们。-PJ

最佳答案

浏览器告诉我没有名为“arrows_1.png”的文件。您的图像文件路径可能不正确。

.nivo-directionNav a {
position:absolute;
top:45%;
z-index:1000;
cursor:pointer;
display:block;
height: 30px;
width: 30px;
text-indent:9999px;
background: url(arrows_1.png);//here is the error.
background-repeat:no-repeat;
opacity: 1; /* NEW */
-webkit-transition: all 200ms ease-in-out;
-moz-transition: all 200ms ease-in-out;
-o-transition: all 200ms ease-in-out;
transition: all 200ms ease-in-out;
}

关于jquery - Nivo slider 上的箭头显示问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20154967/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com