当前位置:网站首页>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
边栏推荐
- Go基础笔记_5_数组切片
- BPG笔记(三)
- The difference between.Split (",", -1) and.Split (",")
- Jar package used by jsonarray in main function provided by leetcode
- 新红包封面平台可搭建分站独立后台的源码
- 什么叫裸写SQL?express操作mysql用什么中件间或插件好呢?
- 以科技传递温度,vivo守护生物多样性之美
- What's new in the ranking list in July? This language is invincible?
- Use of component El scrollbar
- pbootcms模板调用标签序数从2开始或者自动数开始
猜你喜欢

5年接触近百位老板,身为猎头的我,发现升职的秘密不过4个字

程序员必备技能----断点调试(IDEA版)

Use the hiflow scene connector to view the epidemic situation in the region every day

Loadrunner12 installation, recording the first script and the proxy server did not respond to the solution

2022.7.22 JS entry common data types and methods

Phpcms realizes product multi condition screening function
![[untitled]](/img/61/91a8a67d069193a9f3000a43ccdab9.png)
[untitled]

In depth understanding - wechat developer tools

認識傳輸層協議—TCP/UDP

Async await details & Promise
随机推荐
STM32 installation tutorial and j-link burning driver installation tutorial [the next day]
1000 okaleido tiger launched binance NFT, triggering a rush to buy
2022-07-22: what is the output of the following go language code? A:1; B:1.5; C: Compilation error; D:1.49。 package main import “fmt“ func main() { var i
pbootcms模板调用标签序数从2开始或者自动数开始
程序员必备技能----断点调试(IDEA版)
【FPGA教程案例39】通信案例9——基于FPGA的交织-解交织数据传输
Quick sort considerations
What's new in the ranking list in July? This language is invincible?
关于缺少编程基础的朋友想转行 ABAP 开发岗提出的一些咨询问题和解答
网络协议详解:TCP Part1
响应式pbootcms模板装修设计类网站
Backward quantum cryptography migration! NIST announces 12 Partners
[untitled]
[Luogu] p1972 HH Necklace
什么叫裸写SQL?express操作mysql用什么中件间或插件好呢?
Combined with actual combat, analyze gb/t 28181 (II) -- equipment directory synchronization
What is naked SQL? What middleware or plug-in is good for express to operate MySQL?
BPG notes (III)
【FPGA教程案例38】通信案例8——基于FPGA的串并-并串数据传输
[jailhouse article] virtualization over multiprocessor system on chip an enabling paradigm for