view与view之间或者image与image之间总是会有缝隙?

小程序 文章 2021-01-29 15:41 770 0 全屏看文

AI助手支持GPT4.0

view与view之间或者image与image之间总是会有缝隙?There is always a gap between view and view or between image and image?

view与view之间或者image与image之间总是会有缝隙?

view之间行与列之间都会有大约1rpx左右的缝隙,在安卓手机上尤为明显,苹果手机适配的比较好,安卓手机是各种各样的缝隙。

如图所示:

详情请看下面代码片段

https://developers.weixin.qq.com/s/hbqTMImL7TnU

There will be a gap of about 1 rpx between the rows and columns of views, especially on Android phones. Apple phones are better adapted, and Android phones are all kinds of gaps. As shown in the figure: please see the following code fragment for details https://developers.weixin.qq.com/s/hbqTMImL7TnU

回答:

Boyun:

有社区管理来回答下吗~谢谢~

|G.XIAO|:

感觉像图片边框的问题,放到web里看看

juy:图片没有边框
|G.XIAO|:1.放到web里,设置背景色非白色
2.写个代码片段上传一下
这样描述都是靠历史经验猜测
Wkiwi:

image

设置display:block

juy:试过了,还是会有缝隙

-EOF-

AI助手支持GPT4.0