html5shiv - why is it only for IE?

前端 未结 4 582
抹茶落季
抹茶落季 2021-02-10 16:51

I want to start using some HTML5 tags, but worried how it will render on browsers that do not support HTML5. It seems like html5shiv is a solution I can use for IE browsers <

4条回答
  •  庸人自扰
    2021-02-10 17:30

    Other browsers support non-standard elements simply by setting their css display property:

    header,
    footer,
    article,
    section,
    ...etc... {
        display: block;
    }
    

    For old versions of Firefox and webkit based browsers (pre HTML5) this was all that was necessary.

提交回复
热议问题