嘗試添加到您的style.css:
li.drop-down > A {
text-indent: -4000px;
width: 4000px;
}
IE 7不會引發MouseEnter事件可能是因爲它無法看到該元素具有如此大的凹痕。至少,添加寬度使其對瀏覽器更爲明顯。
編輯:或者,您可以在li本身而不是錨點上觸發mouseenter。
$("li.drop-down").bind("mouseenter",function(){
var _li=$(this);
$(".subMenu").slideUp("fast");
$("."+_li.attr("id")).stop(true, true).slideDown("fast");
});
至於背景邊框問題,請嘗試將您的UL圖像封裝在普通的DIV中。
<div>
<ul style="width: 3100px; margin-left: -384.733px;"><li style="margin-left: -620px; float: left;"><img src="Eastside%20Baptist%20Home%20Page_files/jQueryPlaceHolder4.jpg" alt="Fourth Picture"></li>
<li style="float: left;"><img src="Eastside%20Baptist%20Home%20Page_files/jQueryPlaceHolder.jpg" alt="jQueryPlaceHolder"></li>
<li style="float: left;"><img src="Eastside%20Baptist%20Home%20Page_files/jQueryPlaceHolder2.jpg" alt="Second Picture"></li>
<li style="float: left;"><img src="Eastside%20Baptist%20Home%20Page_files/jQueryPlaceHolder3.jpg" alt="Third Picture"></li>
<li style="float: left;"><img src="Eastside%20Baptist%20Home%20Page_files/jQueryPlaceHolder4.jpg" alt="Fourth Picture"></li>
<li style="float: left;"><img src="Eastside%20Baptist%20Home%20Page_files/jQueryPlaceHolder.jpg" alt="jQueryPlaceHolder"></li>
</ul>
</div>
你是如此專注於詛咒IE7,忘記發佈代碼示例。 – mauris 2009-12-27 22:52:08
該網站的鏈接現在有...對不起。 – 2009-12-27 22:54:11
也許在「扮演一個傻瓜」的時候稍微擴展一些 - 有些屏幕或者出現問題的描述可能會有所幫助:-) – 2009-12-27 22:59:22