0
是否可以創建驗證(W3C)的可點擊框?在可點擊的框中,我需要列表元素和段落。驗證可點擊內容框的W3C
這不驗證:
<a href="http://www.test.com">
<p>My paragraph</p>
<ul>
<li>My content item</li>
</ul>
</a>
這證實,但不解決問題(很醜陋):
<a href="http://www.test.com">
<span class="p">My paragraph</span>
<span class="ul">
<span class="li">My content item</span>
</span>
</a>
這證實但禁用鼠標單擊以在新選項卡中打開頁面。
<div onclick="window.location='http://www.test.com'">
<p>My paragraph</p>
<ul>
<li>My content item</li>
</ul>
</div>