html - Flex div 在 iphone xr 上被忽略
问题描述
我的 iphone xr 上的 flexbox 有问题,在所有其他型号上都没有发生,在 android 手机上也没有出现,看起来logo
div 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;
}
解决方案
推荐阅读
- arrays - 如何使用位于数组中的数组中的数据
- ios - 当应用程序从后台返回时,Xamarin iOS 呈现不同的视图控制器
- jsp - 尝试从另一个页面调用一个 jsp 页面时出现内部服务器错误代码 500
- powershell - 在 Outlook 中创建会议的 Powershell 脚本
- python - 一些 SVG 元素未在 python webkitgtk 应用程序中呈现
- javascript - 在 setBadgeText 中传递变量的正确语法
- android - Android In App Updates - 无法在 AppUpdateInfo 中检测到更新
- kubernetes - 用于代理传递的 URI 中的正则表达式
- javascript - 是否可以控制外部网站上 iframe 的高度
- ios - 如何将 JSON 中的值附加到数组中?