方法一:
<style type="text/css">
body{
background: url("./lib/background.png") no-repeat center center fixed;
/*兼容浏览器版本*/
-webkit-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>
方法二:
style="background: url(lib/login.png); background-size: 100% 100%; background-attachment: fixed"
标签:lib,cover,添加,背景图片,background,css,size
From: https://www.cnblogs.com/yzx-sir/p/17520130.html