Image标签显示问题

发布于 8 年前作者 yong3020031 次浏览最后编辑 8 年前来自 ask

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

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

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

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

3 回复
duanchao
duanchao1 楼6 年前

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

lihao
lihao2 楼6 年前

<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>

gongxia
gongxia3 楼6 年前

<view style=“position:relative”>

    <image></image>

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

</view>