Make HTML5 header work with IE — HTML5 Shiv doesn’t fix my layout

前端 未结 1 1577
灰色年华
灰色年华 2021-01-19 10:29

I posted the other day about problems I was having with my layout in IE.

Today I figured out my problem, IE was not working for my HTML5 elements like

1条回答
  •  囚心锁ツ
    2021-01-19 10:55

    Those scripts will make the new elements work in IE but their display style is still missing. Add the following css which I copy pasted from html5boilerplate.com:

    article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
    audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
    audio:not([controls]) { display: none; }
    [hidden] { display: none; }
    

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