これはIEで動作するようになっていますが、完璧なFirefoxで動作します。これは私のCSSを書いた方法によるものですか?IE 8のCSSホバー
おかげ
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マークアップも投稿してください。それがどのように現れ、どのように表示されるべきかを述べる。 'enter code here'も削除してください。 – Jawad
あなた自身を繰り返す必要はありません。あなたの ':hover'ルールは変更された背景だけを必要とし、残りは以前のルールから適用されます。 – MMM
こんにちはこれはJavascriptコードで動作しますので、HTMLにはありません – Rifki