Bootstrap页面布局13 - BS按钮

bootstrap中的按钮类

一般可以作为按钮的标签有:<a></a>  <button></button>  <input type='button' />上面

如图:

如果要改变按钮的尺寸:

   .btn-large:尺寸最大;

  .btn-small:尺寸中等;

  .btn-mini:尺寸最小

为按钮添加小图标:

  i标签表示添加的小图标: icon-comment

  图标的颜色:默认是黑色,还可以设定白色为 .icon-white

  <button type='submit' class='btn btn-success'><i class='icon-comment icon-white'></i> 立刻评论</button>

  要了解更多的小图标类:http://twitter.github.com/bootstrap/base-css.html#icons

posted @ 2014-08-02 23:57  Zell~Dincht  阅读(437)  评论(0编辑  收藏  举报