HTML5中新布局标签的降级效果如何?使用它们有什么危险?(我不是在谈论<video>--我已经看到了它的特定回退代码)。
具体地说,就像这样的情况
<html>
<head></head>
<body>
<header>
<h1>Talking Dogs</h1>
<b><p>Humans aren't the only talkers!</p></b>
</header>
<article>
<p>Ever encountered a talking dog? I have.</p>
<p>It all happened one day as I was walking down the street...</p>
</article>
<footer>
© 2009 Woofer Dog Corporation
</footer>
</body>
</html>使用<header>、<article>或<footer>会导致浏览器出现问题吗?在不支持的浏览器中,它们会自动降级为<div>吗?或者,如果我包含它们,是否应该只包含语义意义,而不是CSS样式或DOM脚本?
发布于 2010-06-03 23:22:40
无论如何,对于表示,你将使用CSS,所以浏览器是否能理解标签本身并不重要。
https://stackoverflow.com/questions/2967286
复制相似问题