我正在进行一个WordPress自定义操作,需要将整个文章标签设置为链接。
基本上,当我悬停在
基本上,当我悬停在
<article>
标签上时,背景色会改变(可以正常工作),但我无法找到HTML代码将整个标签转换为链接。
我已经尝试了两种方法。<a href="mylink">
<article>
/*article content: an image, header &text*/
</article>
</a>
并且
<article>
<a href="mylink">
/*article content: an image, header &text*/
</a>
</article>
article
作为一个链接,那就有些问题了。 - Mr. Alien