2012-04-23 39 views

回答

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