我需要为我的网站将不会使用的区域设置背景图像。如何设置背景?
http://oi61.tinypic.com/903z4l.jpg
我需要在网站的灰色部分添加背景图片。
我的HTML代码:
<html>
<body>
<?php include 'banner.php'; ?>
</body>
</html>
横幅和导航代码,我已经将其设置为中心和banner.php 800像素,为u在PIC看到:
#nav
{
margin-left:auto;
margin-right:auto;
width:800px;
}
创建一个div,这是你想要背景的位置,而不是像CSS那样使用'background:url('something.png');' –
background:url(path/to/image.jpg); –
@安迪没有工作。 – user3545779