当前位置:网站首页>Wechat applet reports an error: [rendering layer network layer error] pages/main/main Local resource pictures in wxss cannot be obtained through wxss. You can use network pictures, Base64, or < image/
Wechat applet reports an error: [rendering layer network layer error] pages/main/main Local resource pictures in wxss cannot be obtained through wxss. You can use network pictures, Base64, or < image/
2022-07-01 12:07:00 【qq_ forty-four million nine hundred and thirty-four thousand th】
Project scenario :
Project scenario : When inserting pictures into wechat applet, there is an error , Displaying local resource pictures cannot pass WXSS obtain
An error is as follows :
Problem description :
Code description in the project :.content{
font-family: Microsoft YaHei , Song style ;
font-size: 14px;
/* background-size: cover; */
height: 100%;
width: 100%;
background-image: url("../assets/img/1.png");
color: #FFFFFF;
}
Cause analysis :
1.pages/main/main.wxss The local resource image in cannot pass WXSS obtain , Can use network pictures , perhaps base64, Or use labels .
2. Applet path... Is not allowed in applet style
Solution :
The simplest solution is to change the address of the picture to the network path
As shown in the figure :
边栏推荐
- 陈珙:微服务,它还那么纯粹吗?
- 区间乘积的因子数之和——前缀和思想+定一移二
- Machine learning - Data Science Library - day two
- How does Nike dominate the list all the year round? Here comes the answer to the latest financial report
- 博途V15添加GSD文件
- 91. (chapitre Cesium) simulation de lancement de fusées cesium
- 二叉堆(一) - 原理与C实现
- LeetCode力扣(剑指offer 31-35)31. 栈的压入弹出序列32I.II.III.从上到下打印二叉树33. 二叉搜索树的后序遍历序列34. 二叉树中和为某一值的路径35. 复杂链表的复制
- Custom grpc plug-in
- Rural guys earn from more than 2000 a month to hundreds of thousands a year. Most brick movers can walk my way ǃ
猜你喜欢
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
Self organization is the two-way rush of managers and members
研发效能度量框架解读
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
Computer graduation project asp Net attendance management system vs developing SQLSERVER database web structure c programming computer web page source code project
On recursion and Fibonacci sequence
Harbor webhook from principle to construction
Le semester manquant
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 5
随机推荐
Exposure: a white box photo post processing framework reading notes
Learning summary on June 29, 2022
巩固-C#运算符
二叉堆(一) - 原理与C实现
【datawhale202206】pyTorch推荐系统:召回模型 DSSM&YoutubeDNN
ACLY与代谢性疾病
Use set_ Handler filters out specific SystemC wrapping & error messages
Istio, ebpf and rsocket Broker: in depth study of service grid
ABBIRB120工业机器人机械零点位置
如何看懂开发的查询语句
S7-1500plc simulation
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
对于mvvm和mvc的理解
Learning summary on June 28, 2022
Redis startup and library entry
I'm in Zhongshan. Where is a better place to open an account? Is it actually safe to open an account online?
easyexcel的使用
【datawhale202206】pyTorch推荐系统:精排模型 DeepFM&DIN
Comment Cao définit la décimale de dimension
Value/sortedset in redis