Taro, to achieve a small program to import a background image in style file

https://taro-docs.jd.com/taro/docs/static-reference.html

 

 Note that the point is that you control the image size, and then configure After limit, the dist deleted, re-run npm run dev: weapp will automatically convert images into base64

Guess you like

Origin www.cnblogs.com/ww01/p/11719849.html