無法得到這個工作在IE瀏覽器,但作品完美的Firefox,這是由於我寫我的CSS的方式嗎?css懸停在IE 8中
感謝
[R
CSS
.theme-default .nivo-directionNav a {
display:block;
width:26px;
height:23px;
background: url(../images/arrows-3.png) no-repeat;
text-indent:-9999px;
border:0;
}
.theme-default .nivo-directionNav a:hover {
display:block;
width:26px;
height:23px;
background: url(../images/arrows-over-1.png) no-repeat;
text-indent:-9999px;
border:0;
}
的Javascript
//Add Direction nav
if(settings.directionNav){
slider.append(
'<div class="nivo-directionNav">
<a class="nivo-prevNav">'+ settings.prevText +'</a>
<a class="nivo-nextNav">'+ settings.nextText +'</a>
</div>'
);
//Hide Direction nav
if(settings.directionNavHide){
$('.nivo-directionNav', slider).hide();
slider.hover(function(){
$('.nivo-directionNav', slider).show();
},
function(){
$('.nivo-directionNav', slider).hide();
});
}
發佈您的HTML標記。說明它現在如何顯示以及它應該如何顯示。此外,刪除'在此處輸入代碼' – Jawad 2012-01-30 10:50:35
您不必重複自己,您的':hover'規則只需要更改後的背景,剩下的將從您先前的規則中應用。 – MMM 2012-01-30 10:55:10
嗨這適用於Javascript代碼,所以它不在HTML – Rifki 2012-01-30 10:57:15