如果你看看這個頁面:http://wearewebstars.dk/frontend/Test/boerneunivers2.html 然後點擊例如:在左側的導航第三鏈接,然後你會看到該鏈接現在目前的 - 然後,如果你將鼠標懸停在第四鏈接,然後在寬度第三個鏈接改變了?不知道爲什麼?任何幫助將不勝感激...懸停時的寬度有趣嗎?
我用jQuery來懸停EFFEKT,像這樣:
$(".left-navigation ul li:not(.current)").hover(function(e){
var mEnt = e.type=="mouseenter"; // boolean true/false
$(this).stop().animate({width: mEnt?'100%':35}, mEnt?100:0, function() {
$(this).find("span.nav-text").css({
display: mEnt? "inline-block" : "none"
});
});
});