设置登录html背景 background-image: url();
background-image: url(图片的相对路径);
如:
background-image: url(../static/images/背景.jpg);
<style> body{ background-image: url(../static/images/背景.jpg); background-size: 100% 100%; background-repeat: no-repeat; background-attachment: fixed; } </style>
本文来自博客园,作者:CodeYaSuo,转载请注明原文链接:https://www.cnblogs.com/hany-postq473111315/p/14531790.html