scroll-view里图片右边显示不全有白边?

微信问答 文章 2021-12-03 16:20 345 0 全屏看文

AI助手支持GPT4.0

scroll-view里图片右边显示不全有白边?Is there a white border on the right side of the picture in the scroll-view?

scroll-view里图片右边显示不全有白边?

如图所示,给图片设置100vw还是这样子,好奇怪;手机上扫码也是这样。。。

有大神知道咋回事吗?

<scroll-view scroll-y bindscroll="handleScroll" style="height: 100vh;">  <image src="/uploads/cj/article/2021/12/03/c6286cf0206a150a2c497adc98aab925.jpg" style="width: 100vw; height: 48vw; border-radius: 0 0 36rpx 36rpx;" /> </scroll-view>

As shown in the figure, it's strange to set 100vw for the picture; The same is true for scanning codes on mobile phones... Does any god know what's going on< scroll-view scroll-y bindscroll="handleScroll" style="height: 100vh;">

鍥炵瓟锛�

凌晨丶傍晚:

图片加display:block;试试

明:

fonst-size:0;

试试

林huaqi:试了不行
明:是给image加的嘛
林huaqi:我再试试吧,scroll-view里只保留image是正常的。估计是后面哪个view的style影响到了。谢谢
林huaqi:

把scroll-view换成view就显示正常了

-EOF-

AI助手支持GPT4.0