IE11 is missing User Agent Style for main element (display: block;)

后端 未结 1 585
轻奢々
轻奢々 2021-01-01 09:58

Apparantly IE11 doesn\'t have a User Agent Style for

and therefor no display: block; on it. Why is there no User Agent Style?<
相关标签:
1条回答
  • 2021-01-01 10:50

    The main element is indeed not fully supported by IE11. Adding main { display: block; } to your CSS is the best solution for IE9+. You don't need to make conditional comments - since display: block; is the default behavior for main elements, it won't mess up anything.

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