2013-05-19 117 views
-1

所以我非常在意为什么我的标题没有出现,令人惊讶。我尝试了一切。输入时我有点搞砸了,但它仍然应该显示出来。标题不显示?

在此先感谢。

HTML

<body> 
<div class="header"> 
<div id="logo"> 
<img src="../Images/logo.png"> 
</div> 
</div> 
</body> 
</html> 

CSS

body { 
    background-color:#2A2B2D; 
    margin:0px; 
    padding:0px; 
} 
.header { 
    background-color:#2C2E31 
    border-bottom:#000000 2px solid; 
    top repeat-x; 
    height:182px; 
} 
+2

什么是'top repeat-x;'? – Adrift

+1

这条线是什么'top repeat-x;'应该这样做? – naththedeveloper

+0

top repeat-x;为背景颜色:#2C2E31我猜 – underscore

回答

1

http://jsfiddle.net/jYbfc/

,如果你想的宽度是大小的页面一样,你应该使用

width:100%; 

。你也忘了一个“;”在你的背景颜色后。

body { 
    background:#2A2B2D; 
    margin:0px; 
    padding:0px; 
} 
.header { 
    background:#2C2E31; 
    border-bottom:#000000 2px solid; 
    width: 100%; 
    height:182px; 
} 
+0

http://jsfiddle.net/ ????????????? – underscore

+0

哎呀哈哈,我忘了更新它,所以它没有一个链接呢。 – ZZPLKF