flexbox columns and IE

时光总嘲笑我的痴心妄想 提交于 2019-12-03 09:34:31

I had a very similar issue with IE11.

Apparently the issue is to do with IE's implementation of the flex property.

In IE10 the default value for flex is 0 0 auto rather than 0 1 auto as defined in the latest spec.

Source: http://caniuse.com/#feat=flexbox

Explicitly setting the flex property to 1 0 auto remedied the issue for my case.

So anywhere you have the flex property set, update the values to match this explicit format.

Removing the flex items in .headerContainer nav > a fixes the problem. Tested in IE11 and Chrome.

... though that does break the wider layouts - so you will have to put them back in for >800px media query.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!