示例代码
<a href="#">
<div>
<a href="#"></a>
</div>
</a>
上述代码由浏览器渲染后变成如下
<a href="#"></a>
<div>
<a href="#"></a>
</div>
解决
在w3c中有这样一段话
The a element may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g., buttons or other links).
a元素可以环绕整个段落、列表、表格等,甚至整个部分,只要其中没有交互内容(例如,按钮或其他链接)。
3万+

被折叠的 条评论
为什么被折叠?



