主要是在引入背景图片的前面加入“ ~@/assets/ ”
<style lang="scss">
div{
height:600px;
background-size:100%;
background-repeat:no-repeat;
background-position:center top;
&.hisBox1{
background-image:url(https://blog.csdn.net/~@/assets/images/template-1-bg.jpg);
}
}
</style>
博客内容主要提及在引入背景图片时,需在前面添加“ ~@/assets/ ”,这属于前端开发中资源引入的操作。
4953

被折叠的 条评论
为什么被折叠?



