国庆网页背景代码

1、CSS法:

若你想网站全部背景都修改,那么你需要打开你的CSS文件,将下面的代码直接复制到CSS文件里面

body { background-image:url(http://ip.429006.com/61.jpg); background-repeat:no-repeat; background-position: top center;  padding-top:52px;}

2、修改首页源码代码:

如果你只希望单独的页面显示这个背景,只需将代码放在该页面的头部文件的<head></head>中间就可以了。

<style>
body { background-image:url(http://ip.429006.com/61.jpg); background-repeat:no-repeat; background-position: top center;  padding-top:52px;}
</style>

附:可用的背景地址:
http://images.zhcw.com/beijing/beijing_20090908.jpg
http://image.zcool.com.cn/25/29/1289191829302.jpg
http://i49.tinypic.com/344saj4.jpg
http://good.gd/2245873.htm

This entry was posted in Technology and tagged , , . Bookmark the permalink. 7,700 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *