html - Flex order 和 flex-direction 在 IE11 和 Edge 中不起作用
问题描述
我正在尝试在表中使用or flex order
,但在 IE11 和 Edge 中失败。谁能告诉我为什么或给我另一种方式来改变他们的订单?这是代码片段。flex-direction
<td>
tr {
display: flex;
display: -ms-flexbox;
display: -webkit-flex;
/* flex-direction: row-reverse; */
}
td.a {
order: 2;
-ms-flex-order: 2;
-webkit-order: 2;
}
td.b {
order: 1;
-ms-flex-order: 1;
-webkit-order: 1;
}
<html>
<head>
</head>
<body>
<table>
<tr>
<td class="a">1</td>
<td class="b">2</td>
</tr>
</table>
</body>
</html>
解决方案
推荐阅读
- node.js - Mongodb聚合distinct,average和sum与两个集合之间的group by
- ios - 是什么触发了“您要允许“我的应用”使用 Face ID 吗?
- java - 如何将更改应用于处理中的类的特定对象?
- python - 如何在numpy中制作排名数组
- shell - jenkinsfile 执行的 bash 脚本变量值中的星号导致 glob 模式
- kivy - Kivy,重用切换按钮布局,但为按钮分配不同的功能
- javascript - JS递归中的增量问题
- c# - Unity 在运行时更改 UI 图像颜色
- android - com.android.volley.RequestQueue.add(com.android.volley.Request)' 在空对象引用上。如何使用 volley 解析 json?
- angular - 如何对组件进行单元测试以检查特定组件是否已呈现