当我更改导航栏的分辨率时,它会出现故障。这是我的 HTML;
<!--Start header-->
<div id="header">
<div id="nav_header">
<ul id="list-nav">
<a href="index.htm" id="home">Troll Happy</a>
<li><a href="iphone.htm" id="fail">iPhone Fail</a></li>
<li><a href="forever.htm" id="alone">Forever Alone</a></li>
<li><a href="rage.htm" id="rage">Rage Comics</a></li>
<li><a href="derphina.htm" id="Derp">Derpina</a></li>
<li><a href="okay.htm" id="okay">Okay face</a></li>
<li><a href="http://forums.trollhappy.co.uk/xenforo/forum/index.php" id="forums">Forums</a></li>
</ul>
</div>
</div>
<!--End header-->
还有我的 CSS;
#header {
height:66px;
background-color:#000;
position: absolute;
width: 100%;
left:0;
}
#nav_header {
height:50px;
margin-left:100px;
}
ul#list-nav {
list-style:none;
margin:20px;
padding:0;
}
ul#list-nav li {
display:inline;
font-family: Century Gothic, sans-serif;
font-size:13px;
font-weight:bold;
}
ul#list-nav li a {
text-decoration:none;
padding:15px 0;
width:110px;
color:#eee;
float:left;
text-align:center;
border-right:1px solid #353535;
}
你可以看到这里发生了什么;
trollhappy.co.uk
如您所见,如果您更改分辨率,导航栏就会出现故障!
再次感谢男孩和女孩