在构建我的WordPress网站时,我遇到了一个奇怪的问题。在Firefox浏览器中,所有位于Bootstrap按钮内部的链接都无法正常工作。
这是什么原因导致的呢?
以下是HTML输出:
<button class="btn pull-right" role="button">
<a href="http://domain.dev/?cat=4" name="View all News">
All News
</a>
</button>
这是 CSS 的代码:
.home #primary #home-more .btn {
background-image: url("../img/home-button-sprite-more.png");
background-repeat: no-repeat;
margin-right: 0px;
background-color: transparent;
padding: 13px 40px;
background-position: 20px 0px;
}
button.btn {
display: inline-block;
padding: 13px 24px;
margin-bottom: 0px;
margin-right: 10px;
font-size: 10px;
text-transform: uppercase;
font-weight: bold;
line-height: 1;
text-align: center;
vertical-align: middle;
cursor: pointer;
border: medium none;
border-radius: 0px 0px 0px 0px;
white-space: nowrap;
-moz-user-select: none;
}
button
标签内... 仅限于火狐浏览器... 真奇怪。 - Bojana Šekeljić