1.直接对img标签进行设置,不是div;
<style>
img {
position: fixed;
width: 100%;
height: 100%;
left: 0;
top:0;
}
</style>
<body>
<img src="../images/item01.png">
</body>
2.给html,body设置背景图像;
html.body {
margin: 0;
padding: 0;
background: url(../images/item01.png) no-repeat;
background-size: cover;
}