SpringBoot项目中图片的引用

问题描述:在SpringBoot项目中需要在CSS样式文件中引入图片给某个元素设置样式

解决办法:

body{
    background-image: url("../image/580.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

 

你可能感兴趣的:(Spring,Boot)