twitter-bootstrap 使用 Twitter 引导程序,锚标记未显示为按钮
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19318971/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 18:50:16 来源:igfitidea点击:
Anchor tag not displayed as button using twitter bootstrap
提问by Andre Lombaard
I'm using twitter bootstrap 3.0 and trying to display an anchor tag as a button using
我正在使用 twitter bootstrap 3.0 并尝试使用
<a href="#" class="btn">Add button</a>
But it is not showing as a button
但它没有显示为按钮


When I use
当我使用
<button class="btn"> Add button</button>
it is displayed as expected
它按预期显示


回答by Zeeba
<a href="#" class="btn btn-default">Add button</a>
add btn-default
添加 btn-default

