Degradation issues for HTML5 semantic tags (article, footer, header)

后端 未结 3 1087
终归单人心
终归单人心 2020-12-13 15:16

How well do the new layout tags in HTML5 degrade? What are the hazards in using them? (I\'m not talking about --I\'ve seen specific fallback code f

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 16:05

    As long as you use html5shiv to handle IE, it will work fine.

    The browser will treat all unknown tags (including HTML5 tags) as normal inline elements.
    You should include the following CSS rule:

    article, aside, figure, footer, header, hgroup,
    menu, nav, section { display: block; }
    

提交回复
热议问题