【发布时间】:2014-11-20 08:50:04
【问题描述】:
我无法在按钮中实现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>
但这会导致混乱:
有什么简单的方法可以解决这个问题吗?非常感谢!
【问题讨论】:
-
为什么不简单地添加
class="btn btn-default btn-custom"你的href元素 -
@Tibbers 我可以吗?天哪
-
bootstap 和 twitter-bootstrap 是不同的东西,请不要混淆标签
标签: html css twitter-bootstrap button