如果通过放弃 Initializr(对于我需要的功能来说太强大)并使用以下结构自己修复它:
<div id="container">
<div class="navbar">
<a href="index.html" class="logo">
<img src="img/logo.png" />
</a>
<div class="nav">
<ul>
<li><a href="page1.html">Page 1</a></li>
<li><a href="page2.html">Page 2</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="content">
Content here
</div>
</div>
以及以下 CSS:
#container { width: 1170px; margin: 0 auto; }
.navbar, .content { font-size: 1.6em; }
.navbar .logo { float: left; }
div.nav ul { list-style: none;padding: 0;}
div.nav ul li { display: inline;}
div.nav ul li a { display: block; background-image: url('../img/linksBackground.png'); background-position: 0 80px; background-repeat: no-repeat;
margin-top: 115px; float: left; padding: 11px 30px 9px 30px; text-decoration: none; color: #5dd2ff; }
div.nav ul li a:hover {color: #fff; background-position: 0 160px; background-color: #95e2ff;}
div.nav ul li.active a { color: #fff;font-weight: bold; background-position: left top; background-color: #5dd2ff;}
.clear { clear: both; }