首页 > 解决方案 > Flex div 在 iphone xr 上被忽略

问题描述

我的 iphone xr 上的 flexbox 有问题,在所有其他型号上都没有发生,在 android 手机上也没有出现,看起来logodiv flex 被忽略了,表单越过了它。我错过了一些重要的 CSS 选项吗?我的代码如下

<div class="auth">

test
<div class="logo">
test
</div>

<div class="form">
test
</div>
</div>
.auth {
  display: flex;
  flex-direction: column;
}

.logo {
  flex: 0.1;
}

.form {
  flex: 1;
}

在此处输入图像描述

标签: htmlcss

解决方案


推荐阅读