当前位置:网站首页>微信小程序-image加载图片工具中显示,真机中不显示
微信小程序-image加载图片工具中显示,真机中不显示
2022-06-21 15:51:00 【华为云】
主页:小王叔叔的博客
支持:点赞关注️收藏
在微信小程序中,加载图片时,image真机中不显示图片
解决:将图片用英文命名,不用正文命名,即可解决。
代码:
.wxml
<!-- 页面下端功能列表 --><view class="container"> <view class="contain_panel1"> <view class="contain_img1"> <image src="../images/functionlists/kaoqin.png" /> </view> </view> <view class="contain_panel2"> <view class="contain_img2"> <image src="../images/functionlists/kaoqin_tongji.png" /> </view> </view> <view class="contain_panel3"> <view class="contain_img3"> <image src="../images/functionlists/kaoqin_qingjia.png" /> </view> </view></view><view class="container2"> <view class="contain_font1"> <text>考勤打卡</text> </view> <view class="contain_font2"> <text>考勤统计</text> </view> <view class="contain_font3"> <text>考勤请假</text> </view></view><view class="container3"> <view class="contain_panel4"> <view class="contain_img4"> <image src="../images/functionlists/map.png" class="contain-image" /> </view> </view> <view class="contain_panel5"> <view class="contain_img5"> <image src="../images/functionlists/sports.png" /> </view> </view> <view class="contain_panel6"> <view class="contain_img6"> <image src="../images/functionlists/scan.png" /> </view> </view></view><view class="container4"> <view class="contain_font4"> <text>地图</text> </view> <view class="contain_font5"> <text>运动</text> </view> <view class="contain_font6"> <text>扫一扫</text> </view></view>kaoqin.png" /> </view> </view> <view class="contain_panel2"> <view class="contain_img2"> <image src="../images/functionlists/kaoqin_tongji.png" /> </view> </view> <view class="contain_panel3"> <view class="contain_img3"> <image src="../images/functionlists/kaoqin_qingjia.png" /> </view> </view> </view> <view class="container2"> <view class="contain_font1"> <text>考勤打卡</text> </view> <view class="contain_font2"> <text>考勤统计</text> </view> <view class="contain_font3"> <text>考勤请假</text> </view> </view> <view class="container3"> <view class="contain_panel4"> <view class="contain_img4"> <image src="../images/functionlists/map.png" class="contain-image" /> </view> </view> <view class="contain_panel5"> <view class="contain_img5"> <image src="../images/functionlists/sports.png" /> </view> </view> <view class="contain_panel6"> <view class="contain_img6"> <image src="../images/functionlists/scan.png" /> </view> </view> </view> <view class="container4"> <view class="contain_font4"> <text>地图</text> </view> <view class="contain_font5"> <text>运动</text> </view> <view class="contain_font6"> <text>扫一扫</text> </view> </view>.wxss
效果:
工具显示:
真机显示:图片经过压缩,调节高/宽像素
转载声明:本文为博主原创文章,未经博主允许不得转载。
️注意 ~
本期内容就结束了,如果内容有误,麻烦大家评论区指出!
如有疑问可以在评论区或私信,尽我最大能力*️帮大家解决!
如果我的文章有帮助到您,欢迎点赞+关注️鼓励博主,您的鼓励是我分享的动力~
边栏推荐
- Principles and examples of PHP deserialization vulnerability
- Review: effects of repetitive transcranial magnetic stimulation rTMS on resting state functional connectivity
- [pytorch basic tutorial 29] DIN model
- Comprehensive learning notes for intermediate network engineer in soft test (nearly 40000 words)
- 2 万字 + 30 张图 | 细聊 MySQL undo log、redo log、binlog 有什么用?
- 对Integer进行等值比较时踩到的一个坑
- 2022年Q1手机银行用户规模达6.5亿,加强ESG个人金融产品创新
- Using apiccloud to realize document download and Preview
- TypeScript(6)函数
- What is the difference between everything, gnomelive, kdelive, livecd and netinstall in the image?
猜你喜欢

WSL 2 的安装过程(以及介绍)

Set up your own website (4)

Go language - structure

Gmail: how to track message reading status

Any to Any 实时变声的实现与落地丨RTC Dev Meetup

Go language - pointer

Go language -type keyword
![[pytorch basic tutorial 29] DIN model](/img/13/a180134e149c7ec08ff878f3e3514c.png)
[pytorch basic tutorial 29] DIN model

对Integer进行等值比较时踩到的一个坑

The rising sun chart effectively shows the hierarchy and ownership of data
随机推荐
R language uses file of FS package_ Access function, file_ Exists function, dir_ Exists function, link_ The exists function checks whether the file can be accessed, whether the file exists, whether th
2 万字 + 30 张图 | 细聊 MySQL undo log、redo log、binlog 有什么用?
三胎终于来了!通用智能规划平台 - APS模块
What has paileyun done to embrace localization and promote industrial Internet?
Web page automation practice "3. in elong, hotels are accurately matched according to city + date + keyword" part 2
The key points of the article get to solid principle
What's wrong with the if judgment of pbootcms and the direct display of labels?
Principles and examples of PHP deserialization vulnerability
Web page automation practice "1. use the PY third-party library selenium to complete the access operation of elong"
Go language - Method
[redis] basic operation of key
Some understanding of cookies and sessions
Solve the problems of English word overflow / word break in WordPress articles
Single responsibility principle (SRP)
Gold, silver and four are coming soon. What do you need to prepare for looking for a job?
MQTT协议介绍
Research Report on the overall scale, major producers, major regions, products and applications of autothermal reforming units in the global market in 2022
Graph calculation on nlive:nepal's graph calculation practice
去中心化挖矿LP流动性DAPP系统开发案例
去中心化游戏如何吸引传统玩家?

