用一张图片作为网页的背景,能让这个图片不管是在普通显示器还是宽屏显示器上都能全屏显示
<html>
<head>
<title> </title>
<style type="text/css">
#div1
{
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: -1;
}
#div1 img
{
height: 100%;
width: 100%;
border: 0;
}
</style>
</head>
<body>
<div id="div1">
<img src="http://www.xieguang133.com/wp-content/uploads/baidu_pic/other_site/img_baidu_bg.jpg" alt="" />
</div>
</body>
</html>
<head>
<title> </title>
<style type="text/css">
#div1
{
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: -1;
}
#div1 img
{
height: 100%;
width: 100%;
border: 0;
}
</style>
</head>
<body>
<div id="div1">
<img src="http://www.xieguang133.com/wp-content/uploads/baidu_pic/other_site/img_baidu_bg.jpg" alt="" />
</div>
</body>
</html>
东莞龙光网络
提供各种平台的解决方案
网站建设与网站改版
百度SEO(自然排名优化,年付)
中国商机发布引擎(软件)
SEO顾问咨询(门户站)
网络推广外包(月付
http://www.xieguang133.com/
posted on 2010-03-09 17:37 xieguang133 阅读(139) 评论(0) 收藏 举报
浙公网安备 33010602011771号