我喜欢使用css进行以下操作:位置链接在div栏中间
从页面顶部开始有一个div栏100pt。 div栏将厚约100pt。然后在div栏的“中间”我喜欢有菜单选项。我走到这一步,下面,但是菜单项(链接)不居中:
.top_header {
background-color:#3B5998;
height:70px;
margin-left:0px;
margin-right:0px;
top:60px;
position:relative
}
.top_header a, .top_header a:visited, .top_header a:hover, .top_header a:active, .top_header a:focus {
color:white;
font-size:x-large;
font-family:Arial
}
你的意思是垂直居中还是水平居中? –