HTML+css实现图片全屏

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全屏图片</title>
    <style>
        div#div1{
            position:fixed;
            top:0;
            left:0;
            bottom:0;
            right:0;
            z-index:-1;
        }
        div#div1 > img {
            height:100%;
            width:100%;
            border:0;
        }
    </style>
</head>
<body>
<div id="div1"><img src="../image/loginsize.png" /></div>
</body>
</html>
原文地址:https://www.cnblogs.com/hllive/p/5571272.html