当前位置:网站首页>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 :
边栏推荐
- Computer graduation project asp Net attendance management system vs developing SQLSERVER database web structure c programming computer web page source code project
- 消息队列之监控退款任务批处理过程
- Redis startup and library entry
- 自定義 grpc 插件
- 自定义 grpc 插件
- C summary of knowledge points 1
- CAD如何設置標注小數比特
- 我在中山,到哪里开户比较好?实际上网上开户安全么?
- Redis common sense
- ACLY与代谢性疾病
猜你喜欢

GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021

GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021

91.(cesium篇)cesium火箭发射模拟

博途V15添加GSD文件
![[classic example] classic list questions @ list](/img/d8/a259e5f9d08eacbef31254d1bc3304.jpg)
[classic example] classic list questions @ list

Use of easyexcel

用实际例子详细探究OpenCV的轮廓检测函数findContours(),彻底搞清每个参数、每种模式的真正作用与含义

NOV Schedule for . Net to display and organize appointments and recurring events

Joint Time-Frequency and Time Domain Learning for Speech Enhancement

CPI tutorial - asynchronous interface creation and use
随机推荐
使用set_handler过滤掉特定的SystemC Wraning &Error Message
Golang根据参数引入相应配置文件的实现方式
自定義 grpc 插件
How does Nike dominate the list all the year round? Here comes the answer to the latest financial report
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 7
图的理论基础
Personnaliser le plug - in GRPC
redis常识
【单片机】【数码管】数码管显示
Compile and debug net6 source code
Value/list in redis
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
【datawhale202206】pyTorch推荐系统:多任务学习 ESMM&MMOE
Chen Gong: Micro service, is it still so pure?
[Maui] add click events for label, image and other controls
91.(cesium篇)cesium火箭发射模拟
耐克如何常年霸榜第一名?最新财报答案来了
241. 为运算表达式设计优先级 : DFS 运用题
Talk about the pessimistic strategy that triggers full GC?
Harbor webhook from principle to construction