正如您在尝试单击按钮而不是“更多”时在 JSFiddle 中看到的那样,链接不起作用。
文案
button {
padding: 8px 20px;
border: 0;
@include border-radius(6px);
font-size: 0.8em;
text-transform: uppercase;
float: right;
cursor: pointer;
display: block;
a {
display: block;
color: white;
text-decoration: none;
}
}
.green {
background: #9fd468;
display: block;
&:hover {
background: #ace175;
}
&:active {
@include box-shadow (inset 2px 2px 1px #759f49);
}
}
html
<button class="green">
<a href="<?php the_permalink(); ?>">More</a>
</button>