我正在致力于http://pizzli.com/toothworks。我正在尝试以垂直导航为中心,以便它在所有浏览器的头部图像中居中,但是当我缩小时,它似乎会移动。任何帮助,将不胜感激。无法居中WordPress主题中的水平导航
0
A
回答
0
试试这个
ul.topnav {
list-style: none;
padding: 0 20px;
margin: 0 auto;
width: 900px;
float: left;
text-align: center;
font-size: 1.2em;
margin-top: -10px;
margin-left: 230px;
}
#header {
background: url(images/header.png) no-repeat center center;
width: 1260px;
height: 55px;
margin: 0 auto;
}
+0
这种工作。尽管如此,我还是需要头部遍历整个页面。 – user1249318 2012-04-23 19:01:41
+0
然后我会实现我刚刚提供的解决方案,然后得到一个头部图像的一块重复-x在顶部宽度与div:100% – squarephoenix 2012-04-23 19:28:04
+0
该网站真的搞砸在IE浏览器,有什么建议吗? – user1249318 2012-04-23 19:53:45
inline-block的似乎没有工作。我需要保持它作为相对由于jquery下拉 – user1249318 2012-04-23 18:53:22