<style>
.body{
background-image: url('${basepath}/resource/images/loginb1.jpeg');
background-size: 100%;
background-repeat:no-repeat;
}
</style>
来源:https://blog.csdn.net/qq_35624642/article/details/72843150?locationNum=7&fps=1