我无法在按钮中实现href
。
如果我这样说的话会有效:
<a href="/">
<button type="button" class="btn btn-default btn-custom">
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
<br />
<span class="btntext glyphicon-class">PP bậc thang</span>
</button>
</a>
但这会导致这个混乱:
有什么简单的方法可以解决这个问题吗?非常感谢!
答案 0 :(得分:9)
答案 1 :(得分:1)
我更新了你的小提琴,让按钮正常工作:http://jsfiddle.net/ettmujvg/9/
<a href="#" class="btn btn-default btn-custom">
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
<br />
<span class="btntext glyphicon-class">PP bậc thang</span>
</a>