iOS15.4特定写法下高度塌陷(iOS14.7正常)

小程序 文章 2022-03-15 10:00 0 全屏看文

iOS15.4特定写法下高度塌陷(iOS14.7正常)The height is collapsed under the specific writing method of iOS15.4 (iOS14.7 is normal)

iOS15.4特定写法下高度塌陷(iOS14.7正常)
框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug iOS iOS15.4 iPhone12 Pro Max 8.0.18
<view style="display:flex;flex-direction: column;">  <view style="display:flex;flex-direction: column;flex:1; height: 200px;">    <scroll-view scroll-y style="flex: 1;overflow: hidden;">        <view class="card">测试占位1</view>        <view class="card">测试占位2</view>        <view class="card">测试占位3</view>    </scroll-view>  </view></view>

这段代码在 iOS 15.4 与 iOS 14.7 上表现不同,如图所示:

请忽略上面样式代码有些不太规范的地方,主要想咨询一下为什么两个iOS版本会有不同的表现,以及iOS15.4是否还有其他场景与历史版本样式表现不同。

其他信息:

  • iOS 15.4 微信版本号 8.0.18
  • iOS 14.7 微信版本号 8.0.17

Framework type problem type operating system operating system version mobile phone model wechat version applet bug IOS ios15 4 iPhone12 Pro Max 8.0.18       < view class = "card" > test placeholder 1 < / View > < view class = "card" > test placeholder 2 < / View > < view class = "card" > test placeholder 3 < / View > < / scroll View > < / View > < / View > this code performs differently on IOS 15.4 and IOS 14.7, as shown in the figure: please ignore some irregularities in the above style code, I mainly want to ask why the two IOS versions have different performance, as well as IOS 15 4 is there any other scene that is different from the style of the historical version. Other information: IOS 15.4 wechat version number 8.0.18 IOS 14.7 wechat version number 8.0.17 code fragment https://developers.weixin.qq.com/s/O2Lt2Kmb7ExK

回答:

社交恐怖分z:

ios15.3.1正常,我升级下15.4

二零二一:^_^^_^*
11110111001011110111001110111:

加个 enable-flex 属性试试



w_西辰:这样改,表现还是一样的

-EOF-