Image标签显示问题
发布于 6 年前 作者 yong30 19934 次浏览 来自 问答

1.使用Image双标签作为背景,wxss中使用了position: relative

2.Image标签中的子View在wxss中使用了position: absolute;top: 0;left: 0;

现在子View中所有内容显示不出来,如果把Image标签去掉 并更改成View标签 就会正常显示;

请微信各位技术大大 解决 感谢 在线等 等急的~

3 回复

你好,问题已复现,我们会尽快进行修复。

<image style="position:relative">

           //不显示

        <view style="position:absolute;top:0;left:0"></view>

</image>

相同的内容

<view style="position:relative">

           //显示

        <view style="position:absolute;top:0;left:0"></view>

</view>

<view style=“position:relative”>

    <image></image>

    <view style=“position:absolute;top:0;left:0”></view>

</view>

回到顶部