Html 整个按钮不可点击

Html 整个按钮不可点击,html,css,Html,Css,正如您在JSFIDLE中看到的,当您尝试单击按钮而不是“更多”时,链接不起作用 Scss html 将按钮包装在锚定标记中,使按钮成为链接 <a href="<?php the_permalink(); ?>"> <button class="green">More</button> </a> <a href="<?php the_permalink(); ?>"> <button cl

正如您在JSFIDLE中看到的,当您尝试单击按钮而不是“更多”时,链接不起作用

Scss

html


将按钮包装在锚定标记中,使按钮成为链接

<a href="<?php the_permalink(); ?>">
    <button class="green">More</button>
</a>
<a href="<?php the_permalink(); ?>">
    <button class="green">More</button>
</a>

将按钮包装在锚定标记中,使按钮成为链接

<a href="<?php the_permalink(); ?>">
    <button class="green">More</button>
</a>
<a href="<?php the_permalink(); ?>">
    <button class="green">More</button>
</a>