scroll-view中的内容显示空白
发布于 5 年前 作者 wei21 11802 次浏览 来自 问答

scroll-view中嵌套着一张图片和text标签,代码如下:

<view style=“margin-bottom: 10px; background-color: #fff;”>

          <scroll-view wx:if="{{list.question_detail != ‘无’ || list.queimg}}" scroll-y style=“max-height: 200px; height:200px;”>

            <text wx:if="{{list.question_detail != ‘无’}}" class=“describe-material”>

              (材料): {{list.question_detail}}

            </text>

            <image wx:if="{{list.queimg}}" style=“width: 100%” mode=“widthFix” src="{{list.queimg}}" data-url="{{list.queimg}}" bindtap=“previewimage”></image>

          </scroll-view>

        </view>

里面的内容在android机和调试工具都可以正常显示,但是在iPhone7和iPhone6显示空白

3 回复

scroll-view已经添加高度了啊。就事iPhone6和7显示空白

scroll-view的父级设置height:100%;

scroll-view应该设置一个高度

回到顶部