我正在製作一些下拉菜單。我們的設計師規定了大型菜單和翻轉項目之間的差距。通常,沒有問題。我剛剛在中間放了一個透明的div標籤,我們很高興去,對不對?不。那麼,一切(火狐,鉻),但IE瀏覽器的作品。問題在於圖像低於菜單之間的差距。如果我刪除圖像或將擴展名div變成白色,一切都很好。但我希望擁有兩全其美。這可能嗎?是否有更多信息需要您提供幫助?IE瀏覽器CSS懸停失去了焦點時,圖片上
感謝,
JMAX
HTML:
<ul id="navMenu">
<li class="navItem">
<a href="#main" class="trigger">Apparel</a>
<div class="sub-level" id="menu-main">
<ul class="categories column1">
<li><span>Jacket</span>
<ul class="categories column2">
<li data:rel="loadContent.html"><span>Male</span></li>
<li><span>Female</span></li>
</ul>
</li>
<li><span>Shirt</span>
<ul class="categories column2">
<li>Male</li>
<li>Female</li>
</ul>
</li>
<li>Officer</li>
<li data:rel="load-file.htm">Item 1</li>
</ul>
</div>
</li>
CSS
#navigation { left:0px; top:25px; position:relative; width:100%; margin: 0 auto; }
#navMenu { left:0px; list-style:none outside none; text-align:justify; }
.navItem { /*float: left;*/ position:relative; margin-right:5px; width:inherit; display:inline-block; *display:inline; }
.trigger { padding:2px 0; font-weight:bold; text-decoration:none; color:#adadad; }
.trigger:hover, .trigger.hover { color:#332d53; border-bottom:solid 1px #f5d371;}
.stretch {width: 100%; display: inline-block; *display: inline; zoom: 1; font-size: 0; line-height: 0; }
#navMenu:first-child .trigger { margin-left:0px; }
.sub-level { border:1px solid #CCC; width:775px; background-color:#FFFFFF; position:fixed; display:none; height:190px; margin-top:25px; margin-left:-35px; z-index:1001;}
.extension { width:775px; position:fixed; height:30px; display:none; z-index:1000; /*background-color:#FFF; */}
.categories { list-style:none outside none; padding-left:0px; height:160px; font-weight:bold; font-size:10px; color:#adadad; top:0px; margin-top:10px; margin-bottom:20px; border-right: solid #DDDDDD 2px; }
.categories li { padding:5px; text-transform: uppercase; padding-left:20px;}
.categories li:hover { /*background-color:#f5d371;*/ color:#332d53; }
就是這樣。謝謝!! –