Boj*_*jić 5 css firefox twitter-bootstrap
在构建我的wordpress网站时,我遇到了一个奇怪的问题.引导按钮内的所有链接在firefox中都不活动.
什么可能导致这个?
这是html输出:
<button class="btn pull-right" role="button">
<a href="http://domain.dev/?cat=4" name="View all News">
All News
</a>
</button>
Run Code Online (Sandbox Code Playgroud)
这是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;
}
Run Code Online (Sandbox Code Playgroud)
dev*_*evo 17
代替,
<button class="btn pull-right" role="button">
<a href="http://domain.dev/?cat=4" name="View all News">
All News
</a>
</button>
Run Code Online (Sandbox Code Playgroud)
你必须使用,
<a href="http://domain.dev/?cat=4" name="View all News">
<button class="btn pull-right" role="button">
All News
</button>
</a>
Run Code Online (Sandbox Code Playgroud)
要么,
<a href="http://domain.dev/?cat=4" title="View all News" class="btn pull-right">
All News
</a>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3577 次 |
最近记录: |