当前位置:网站首页>Wechat applet setting background image does not display problem solution
Wechat applet setting background image does not display problem solution
2022-07-24 02:24:00 【Wind chaser?】
Recently, I encountered such a small problem in the process of developing small programs , stay wxss In the document background Set the background image , To achieve the effect of displaying text on the background image , Found that the background image is not displayed
The code is as follows
<view style="background:url('../../img/image.png')">
<text> Written content </text>
</view>In line style experience certificate , The simulator displays normally , The problem that the real machine cannot display normally is wechat
resolvent :
Convert local pictures to base64 Format
base64 Image online conversion tool - Webmaster Tools
wxml
<view style="background-image: url({ {background}});background-size: 100% 100%;"></view>
js
data in
边栏推荐
- 分享一个基于Abp 和Yarp 开发的API网关项目
- 毕业设计校园信息发布平台网站源码
- 【FPGA教程案例39】通信案例9——基于FPGA的交织-解交织数据传输
- MySQL---four JDBC
- Wenxin big model raises a new "sail", and the tide of industrial application has arrived
- wallys/WiFi6 MiniPCIe Module 2T2R2 × 2.4GHz 2x5GHz MT7915 MT7975
- STM32 installation tutorial and j-link burning driver installation tutorial [the next day]
- 分布式资源管理与任务调度框架Yarn
- Halide::Generator生成器使用说明
- Responsive layout a web page displays different effects on different devices) meta:vp
猜你喜欢

Detailed comparison between graphic array and linked list, performance test

Leetcode exercise -- two questions about the nearest common ancestor of binary trees

Jina AI 联合Datawhale,发起学习项目!

MySQL---four JDBC

Deliver temperature with science and technology, vivo protects the beauty of biodiversity

2022.7.22 JS entry common data types and methods

分享一个基于Abp 和Yarp 开发的API网关项目

Summary of the first change to open source middleware keycloak

In depth understanding - wechat developer tools
![STM32 installation tutorial and j-link burning driver installation tutorial [the next day]](/img/09/def640c771f1b9effaaec3844d4cd3.png)
STM32 installation tutorial and j-link burning driver installation tutorial [the next day]
随机推荐
How to judge null for different types of fields, sets, lists / sets / maps, and objects
Reconnaître le Protocole de couche de transport - TCP / UDP
Visual full link log tracking
认识传输层协议—TCP/UDP
BPG notes (III)
营员招募|心怀世界的AI青年们,联合国需要你为可持续发展助力!
【FPGA教程案例39】通信案例9——基于FPGA的交织-解交织数据传输
Codeworks 5 questions per day (average 1500) - day 23
Sharing a case of controller restart caused by a CIFS bug in NetApp Fas series
Network protocol details: TCP part1
ASP. Net core write a cache attribute tool
深入了解-微信开发者工具
Use the hiflow scene connector to view the epidemic situation in the region every day
Build a CPU Simulator
图解数组和链表详细对比,性能测试
In depth understanding - wechat developer tools
What's new in the ranking list in July? This language is invincible?
Go基础笔记_5_数组切片
Leetcode 203. remove linked list elements (2022.07.22)
POP3客户端代码的实现