由於<body>標籤的圖片不能夠拉伸,
解決辦法:
1、圖片不夠大,又background屬性不能拉伸圖片; 2、只能用個div,把其z-index值設爲負,並使這個div大小爲整個body大小,在div裏用<img> 3、body的background屬性去掉,要不然會被遮住
<!DOCTYPE html PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<metahttp-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>helloworld</title>
</head>
<body>
<div id="Layer1"style="position:absolute; width:100%; height:100%;z-index:-1">
<imgsrc="pictures/background.jpg" height="100%"width="100%"/>
</div>
</body>
</html>