0

CSS

#container  {
width: 1000px;
margin: 0 auto;
background-color: #000000;
}

#header {
width: 884px;
height: 300px;
position: relative;
margin: auto;
background-image: url(babygoatbooksbanner.png); text-align:center;
background-repeat: no-repeat;
}

HTML

<body>
<div id="container">
<div id="header"></div>
<div id="headertoo"></div>
<div id="leftnav"> dude wheres my car</div>
<div id="body"></div>
</div>
</body>
4

1 回答 1

1

你的意思是background-image

尝试这个:

background: url(babygoatbooksbanner.png) scroll no-repeat center transparent;
于 2013-05-11T02:28:59.507 回答