scroll-view组件在苹果上数据可以请求到,但显示空白,Android正常显示,该怎么解决?
发布于 5 年前 作者 jxie 12392 次浏览 来自 官方Issues
          <van-tab title="A320">
                 <view class="side">
                  <scroll-view class="scroll" scroll-y="true" >
                    <view class="{{ item == chapterselected?'active':''}}" wx:for="{{array}}" wx:key="index" bindtap="select" data-chapter="{{item}}" data-air="A320" >
                      <text>{{item}}章</text>
                     </view>
                  </scroll-view>
                 </view>
                 <view class="rightside">
                  <scroll-view class="scroll2" scroll-y="true" >
                    <view class="wrap" wx:for="{{datatemp}}" wx:key="index" bindtap="toDetailView" data-filename="{{item.Key}}" data-air="A320" >
                      <view>{{ m1.gettitle(item.Key) }}</view>
                      <view class="size">{{ m1.getsize(item.Size) }}KB</view>
                     </view>
                  </scroll-view>
                 </view>
           </van-tab>

<!--wxss-->
/* pages/tips/tips.wxss */
.side{
  position: fixed;
  left0rpx;
  top100rpx;
  width20%;
  height90%;
  background-color:#f0f0f0;
}
.rightside{
  position: fixed;
  left21%;
  top100rpx;
  width78%;
  height90%;
  background-color:#ffffff;
  

}
.scroll{
  height90vh;
}
.scroll2{
  height90vh;
}
.scroll view{
  text-align:center;
  height75rpx;
  line-height75rpx;
  border-bottom3rpx solid #0193cf;
}

.active{
  background-color#0193cf;
  color#ffffff;
}
.wrap{
    /*height: 100rpx;*/
    position: relative;
    width100%;
    padding-left10rpx;
    line-height75rpx;
    font-size: small;
    text-align: start;
    border-bottom3rpx solid #0193cf;
    word-wrap:break-word;
   /* overflow: hidden; */ 

}
.size{
  position: absolute;
  bottom: -27rpx;
  right10rpx;
  font-size: xx-small;
  color#9f9f9f;

}

1 回复

模拟器中运行正常,苹果真机无法显示

回到顶部