我遇到了下拉菜單的問題。我認爲麻煩來自溢出:隱藏;我沒有看到下拉菜單的子菜單。我使用1KB網格。1KB網格 - 下拉菜單未顯示
當我刪除溢出:從.container類隱藏,我可以看到一些下拉,但不是整個。
我很高興看到一個信息,我可以修復它。
grid.css:
.grid_1 {width: 70px;}
.grid_2 {width: 160px;}
.grid_3 {width: 250px;}
.grid_4 {width: 340px;}
.grid_5 {width: 430px;}
.grid_6 {width: 520px;}
.grid_7 {width: 610px;}
.grid_8 {width: 700px;}
.grid_9 {width: 790px;}
.grid_10 {width: 880px;}
.grid_11 {width: 970px;}
.grid_12 {width: 1060px;}
.container {margin: 0 10px 0 10px; overflow: hidden; float: left; display: inline;}
.row {width: 1080px; margin: 0 auto; overflow: hidden; }
.row .row {margin: 0 -10px 0 -10px; width: auto; display: inline-block;}
menu.css
nav {float:right; margin-top:45px; position:relative; z-index:99; font-size:14px 1.4rem; text-transform:uppercase;}
nav .rex-navi1 {list-style:none; margin:0; padding:0; float:right;}
nav .rex-navi1 li {float:left; margin-left:10px; background:#FF9;}
nav .rex-navi1 li:hover {background:#3F6;}
nav .rex-navi1 li a {display:block; text-decoration:none; color:#fff; padding:6px 15px; height:20px; line-height:20px;}
nav .rex-navi1 li:hover a {color:#383738;}
nav .rex-navi1 a.rex-current,
nav .rex-navi1 a.rex-active {background:#FC9; color:#383738;}
nav .rex-navi2 {position: relative; z-index:100px;}
nav li:hover .rex-navi2 {visibility:visible;}
nav li .rex-navi2 {visibility: hidden; position:absolute; font-size:11px; font-weight:normal; list-style:none; margin:0; padding:0; background:#FFF;}
nav .rex-navi2 li {background:#fff; clear:left; display:block; min-width:200px;}
nav .rex-navi2 li a {color:#383738; padding:5px 15px; }
nav .rex-navi2 li a:hover {font-weight:bold; color:#DC002E;}
nav .rex-navi2 a.rex-current {font-weight:bold;}
HTML代碼:
div id="header">
<header class="row">
<section class="container grid_4">
<a href="/" alt="master bench logo"><img src="files/logo_header.png"/></a>
</section>
<nav class="container grid_8">
<ul class="rex-navi1">
<li class="rex-article-2 rex-normal"><a href="">xy</a></li>
<li class="rex-article-8 rex-current"><a class="rex-current" href="">xy</a></li>
<li class="rex-article-4 rex-normal"><a href="">xy</a>
<ul class="rex-navi2">
<li class="rex-article-13 rex-normal"><a href="">xy</a></li>
<li class="rex-article-12 rex-normal"><a href="">xy</a></li>
</ul>
</ul>
</nav>
</header>
</div><div id="main">
<article class="row">
<article class="container grid_12">
here you will find some interesting information<br/>
</article>
</article>
</div>
</div>