你的图片不够大,又background属性不能拉伸图片,只能用个div,把其z-index值设为负,并使这个div大小为整个body大小,在div里用<img>
还有body的background属性去掉,要不然会被遮住。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http:
//www.
w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
margin: 0px;
}
-->
</style>
</head>
<body>
<div id="Layer1" style="position:absolute; width:100%; height:100%; z-index:-1">
<img src="http:
//loverdn.
com/bizhi/UploadPic/2010-6/20106101094734.jpg" height="100%" width="100%">
</div>
//网页内容,最好不要放到上面那个div里面去
</body>
</html>
涉及的两个网址被我断了行,要不然发不上来,直接把换行删掉就行。
温馨提示:答案为网友推荐,仅供参考