css
1 body { 2 100%; 3 height: 100%; 4 background-image: url("/static/img/loginBg.jpg"); 5 background-size: 100% 100%; 6 background-attachment: fixed; 7 }
展示效果如下
css
1 body { 2 100%; 3 height: 100%; 4 background-image: url("/static/img/loginBg.jpg"); 5 background-size: 100% 100%; 6 background-attachment: fixed; 7 }
展示效果如下