我编写的代码在我测试过的所有浏览器中都能正常运行,除了IE 11。问题似乎出在这里:
#wrapper {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: -o-flex;
display: flex;
-webkit-flex-direction: row;
-moz-flex-direction: row;
-ms-flex-direction: row;
-o-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
width: 100%;
height: 100%;
position: relative;
top: 1em;
}
如果我删除flex属性,它会变得更易管理,但是使用它们时,它会将所有内容缩小到这个长而窄的div中,一直延伸下去。
如果我在IE 10中测试,是否有帮助?