In the development process, the background image is set by using background, and the error is reported as follows
Cause of error: Wechat applet sets background through background image: only supports online pictures and Base64 pictures, not local pictures.
Solution: 1. Put pictures on the server and use online pictures
2. The steps of Base64 image setting are as follows:
2-1 on the website http://imgbase64.duoshitong.com/ Convert image to text in Base64 format
2-2 use the above text in wxss:
background- image:url (“ data:image/png; base64,iVBORw0KGgo=…”);
div>
Read More:
- Error reported by wechat applet: cannot read property ‘forceupdate’ of undefined
- Wechat applet error: unhandled project rejection type error: webassembly.instant
- Wechat applet animate animation does not implement animation effect for the first time
- [Android] ImageView setting background image error: error inflating class ImageView
- Ueditor paste word image and upload image file automatically
- Applet error – referenceerror: regeneratorruntime is not defined
- VTK cultivation 26: basic operation of image_ Three dimensional image slice extraction
- Ant Design upload listtype = “picture card” realizes multi image upload and click preview image encapsulation
- Solution for iPhone wechat flash back with mysterious code
- [docker] error in deleting image: image is referenced in multiple repositories
- Applet component properties error cannot read property ‘name’ of undefined
- Mobile phone code scanning applet login authorization error
- WeChat official account web page authorized, redirect_ Uri parameter error, solution!
- Ms- settings:personalization-background terms of settlement
- ImageIO.read () unsupported image type when reading picture_ exception Unsupported Image Type
- Cocos creator 2.4.5 2D RPG (Infinite scrolling background implementation)
- Wechat third party authorization to generate QR code API
- Windows batch: File running in the background
- Wechat payment API V3 payment notice asynchronous signature verification failed
- Traversing the background data to generate tree structure