html - 关于 IE10 浏览器 (Window7) 中的`Flex Layout`
问题描述
使用 flex 布局时,它可以在 Chrome、Safari 中运行……但是,IE10 broswer(Window7) 无法正常工作。(我在文件中编写了代码Component.module.scss
。)
在 Chrome 中,Safari 浏览器检查器...
.box {
display: flex;
display: -ms-flexbox;
flex-direction: column;
-ms-flex-direction: column;
}
在 IE10 浏览器检查器 (Window7)
.box {
display: -ms-flexbox;
// Below style does not appear like never declared in stylesheet
// -ms-flex-direction: column;
}
在 inline 处编写代码<div style="-ms-flex-direction: column;" />
,它可以工作。
如何解决?还是已知问题?
+ 开发环境:CRA(非弹出)和 react-app-polyfill
解决方案
我找到了。问题是浏览器列表选项。在borwserslist
.
推荐阅读
- ffmpeg-php - PHP-ffmpeg ratecontrol_init:无法打开统计文件
- three.js - ThreeJS:如何使对象与背景颜色相同?
- reporting-services - SSRS:根据其他参数更新文本参数
- r - 在条件下删除零值的行
- php - 在 PHP Post 数组中插入复选框
- excel - Excel - 单元格匹配条件的返回值和包含匹配条件的行的最大值
- select - 如何使用 AS 关键字从转换后的日期列中查询
- swift - 从基于 macOS Swift 的应用程序中运行时,Apple 脚本失败
- unity3d - 有没有办法改变 Unity 的视图快捷方式?
- php - 为什么我的阵列不能插入到我的数据库中?