view组件内image图片四周有间隙?

小程序 文章 2020-08-25 09:21 585 0 全屏看文

AI助手支持GPT4.0

view组件内image图片四周有间隙?Is there a gap around the image in the view component?

view组件内image图片四周有间隙?

一个view组件,其中包含一个image组件图片,图片周围有一定的空隙,怎么消除?

如图所示,红色为view组件,白色为image组件图片,组件图片设置为mode="widthFix",并设置 displa:block,也没什么用啊?


A view component contains an image component image. There is a certain gap around the image. How to eliminate it? As shown in the figure, red is the view component, white is the image component image, the component image is set to mode = "widthfix", and the display: block is also useless?

回答:

微喵网络:

弄一个 [ 能复现问题的简单的 ] 代码片段

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

安:

官方放假了没人处理,审核审了一个月也不返回状态https://developers.weixin.qq.com/community/develop/doc/000a667cb34f402999da10b7a56800

ctzl:

vertical-align

belief:没作用啊

-EOF-

AI助手支持GPT4.0