How does Mini Program insert the background picture

< view class="top" >
llllll
< / view >

.top {

background-image: url("/img/bg1.png")

}

clipboard.png

clipboard.png

Mar.04,2021

console makes it very clear


use network pictures, that is, you need to have your own resource server, pictures, audio, video and other resource files are accessed through the online address, and the full address is required. For example: https://img-ads.csdn.net/2018.

Menu