我想在灰色條上移動垂直對齊的菜單字樣,請參閱附件。如何移動灰色條的菜單垂直對齊
這是菜單欄
<body>
<div id="header">
<div class="head-padding"></div>
<div id="head"><img src="images/head01.png" width="1010" height="106"></div>
<div id="nav" class="navbgimg">
<a href="#about" class="mid">About</a>
<a href="#studying">Studying Science</a>
<a href="#SSCI">About SSCI</a>
<a href="#highlights">Programme Highlights </a>
<a href="#life">Student Life</a>
<a href="#fun">Fun Fact</a>
<a href="#tips">Interview Tips</a> </div>
<div id="headwhite"><img src="images/head02.png" width="1010" height="20"></div>
</div>
<div id="page-wrap">
<a name="about"></a>
<div id="page1">
的HTML代碼,這是菜單
#header {
position:fixed;
z-index:1;
margin-top:0px;
margin-left:auto;
margin-right:auto;
height:160px;
width:100%;
}
#head {
margin-top:0px;
margin-left:auto;
margin-right:auto;
background:#2848ad;
height:106px;
width:1010px;
}
.navbgimg {
background-image: url(../images/menubar01.png);
background-repeat:no-repeat;
margin-left:auto;
margin-right:auto;
width:1010px;
height:34px;
letter-spacing: 0.1em
}
#nav {
font-style: normal;
font-weight: 400;
font-size: 12pt;
margin-left:auto;
margin-right:auto;
margin-top:auto;
height:34px;
width:1010px;
text-align: center;
}
#nav a { padding-right: 20px; display:inline-block; }
#headwhite {
margin-left:auto;
margin-right:auto;
top:150px;
height:20px;
width:1010px;
}
#page1 {
position:relative;
top:150px;
height:390px;
width:1010px;
background:#00c9e5;
}
我會更清楚如果你讓你的代碼[小提琴](http://jsfiddle.net/)。 – Praveen