一个普通 <image> 组件,遍历数据,部分图片展示旋转90度,怎么解决?

小程序 文章 2021-03-10 15:41 460 0 全屏看文

AI助手支持GPT4.0

一个普通 组件,遍历数据,部分图片展示旋转90度,怎么解决?An ordinary component, traverse the data, and some pictures are rotated by 90 degrees, how to solve it?

一个普通 组件,遍历数据,部分图片展示旋转90度,怎么解决?

微信小程序的图片,image标签,src 是数据遍历上去的,,,宽高都是100%;没有其他属性,部分图片展示时旋转了90度(安卓手机),iOS手机图片展示都正常,请问怎么解决,谢谢

The pictures, image tags and Src of wechat applet are traversed by data, and the width and height are all 100%. There are no other attributes. Some pictures are rotated 90 degrees when they are displayed (Android mobile phone), and the pictures of IOS mobile phone are displayed normally. How can I solve this problem? Thank you

回答:

Stranger:

图片是放在阿里云服务器上的

Brother斌🎈:

会不会你哪图片本来就是那样的啊

Stranger:不是的,使用图片链接在web和iOS的手机展示都是竖着的
默垂眸:

贴下代码片段

Stranger:
大兵:

能来个可以复现的代码么

Stranger:同上

-EOF-

AI助手支持GPT4.0