flexbox columns and IE

后端 未结 1 858
再見小時候
再見小時候 2021-02-11 20:44

Everything works fine in Chrome and Firefox but guess what, I have a problem in IE! (IE11)

In my responsive layout I want to menu to be horizontal in pc mode and vertica

相关标签:
1条回答
  • 2021-02-11 21:25

    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.

    0 讨论(0)
提交回复
热议问题