1
我正在努力讓我的網站啓動並運行,並且我在Firefox中的下拉導航菜單中遇到了問題。下拉式CSS導航無法在Firefox中工作
我一直在Chrome中使用該網站,它工作正常,它是一個簡單的選擇嵌套列表設置。這些選項會出現,但它們會浮動到左側,而不是直接位於其相應部分的下方。
CSS:
/*sub-menu navigation*/
nav.primary ul ul
{
opacity: 0;
filter: alpha(opacity=0);
position: absolute;
z-index: 999;
background: #111111;
height: 0px;
overflow: hidden;
min-width: 100%;
-webkit-transition: opacity 0.4s ease-out;
-moz-transition: opacity 0.4s ease-out;
-o-transition: opacity 0.4s ease-out;
-ms-transition: opacity 0.4s ease-out;
transition: opacity 0.4s ease-out;
-webkit-box-shadow: 0px 2px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.3);
box-shadow: 0px 2px 2px rgba(0,0,0,0.3);
}
nav.primary ul li:hover ul
{
opacity: 10;
filter: alpha(opacity=100);
height: auto;
overflow: auto;
}
nav.primary ul ul li
{
float: none;
display: list-item;
border-bottom: 1px solid #747474;
}
nav.primary ul ul li a
{
display: block;
margin-left: 10px;
line-height: 40px;
font-size: 0.8em;
/*text-transform: none;*/
font-family: 'LibbyRegular', Helvetica, Arial, sans-serif;
}
菜單HTML
<ul>
<li><a href="portfolio.html#individual" title="individual">independent work</a>
<ul>
<li><a href="bigAndUgly.html">>> big and ugly</a></li>
<li><a href="iceworld.html">>> iceworld</a></li>
<li><a href="gordonsGotGame.html">>> gordon's got game</a></li>
</ul>
</li>
<li><a href="portfolio.html#team" title="team">team projects</a>
<ul>
<li><a href="blastrobots.html">>> blastrobots</a></li>
<li><a href="#">>> ruined</a></li>
</ul>
</li>
<li><a href="portfolio.html#scripting" title="scripting">scripting</a>
<ul>
<li><a href="#">>> hero man (C#)</a></li>
<li><a href="#">>> CloneOut (lua)</a></li>
<li><a href="#">>> shotgun (unrealscript)</a></li>
</ul>
</li>
<li><a href="resume.html" title="resume">resume</a></li>
</ul>
該網站是http://lvsherman.com,如果你想測試它。
工作正常!謝謝! – lloyd
你會幫一個忙,並解釋在這裏做了什麼? – Pavlo