.btn

---------------------------------

button的背景色:

.btn-primary

.btn-success

.btn-secondary

.btn-danger

.btn-info

.btn-light

.btn-dark

.btn-link

--------------------------

button的边框颜色:

.btn-outline-primary

.btn-outline-secondary

.btn-outline-success

--------------------------------

大小:

.btn-lg

.btn-sm

-------------------------------

状态:

.active

.disabled

disabled作为类只适用于<a>标签,不适用于<button>标签,<button>标签中disabled作为一种属性使用,例如:

<button type="button" class="btn btn-lg btn-primary" disabled>Primary button</button>

<a href="#" class="btn btn-secondary btn-lg disabled" role="button" aria-disabled="true">Link</a>

-----------------------------------

可使用的元素:

<a> <input> <button>

-----------------------------------

混合使用:

.button可与checkbox、radio等混合使用,会产生特殊的效果,如:

实例代码:

<div class="btn-group btn-group-toggle" data-toggle="buttons">

  <label class="btn btn-secondary active">
<input type="radio" name="options" id="option1" autocomplete="off" checked> Active
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="option2" autocomplete="off"> Radio
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="option3" autocomplete="off"> Radio
</label>
</div>
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="checkbox" checked autocomplete="off"> Checked
</label>
</div>
方法:
$().button('toggle') 点击button按钮,会进行状态切换
$().button('dispose') 摧毁button按钮

最新文章

  1. Ubuntu 配置有线网 IP
  2. python IOError: [Errno 0] Error
  3. PL/SQL Developer登入时候报ORA-12638: 身份证明检索失败的解决办法
  4. 机器学习&amp;数据挖掘笔记_21(PGM练习五:图模型的近似推理)
  5. Java 密码扩展无限制权限策略文件
  6. (四)Ubuntu 14.04 文件服务器--samba的安装和配置
  7. Linux 设备驱动 Edition 3
  8. linux系统快速查看进程pid的方法
  9. HDU 4931 Happy Three Friends
  10. 老李分享:Python开发性能测试脚本
  11. requests+正则表达式爬取ip
  12. Windows下面Node和NPM的绿色安装及配置
  13. PHP:自己写的mysql操作类
  14. 【BZOJ4784】[ZJOI2017]仙人掌(Tarjan,动态规划)
  15. 系统管理员需知的 16 个 iptables 使用技巧
  16. svn更新项目之后,项目报错一大堆并且tomcat部署项目时找不到项目
  17. 【python】参数中的*args和**kwargs
  18. [游记] HEOI2018酱油记
  19. yum安装软件报错:curl#6 - &quot;Could not resolve host: mirrorlist.centos.org; Temporary failure in name resolut
  20. T-SQL语句3

热门文章

  1. 用ASP.NET Web API技术开发HTTP接口
  2. go变量和常量
  3. k8s 隔离context+namespace
  4. pytorch 绘制训练曲线;服务器端训练,本地浏览器显示,本地打不开;tensorboard端口被占
  5. single number和变体
  6. collate字段详细讲解
  7. centos7之Java开发环境构建
  8. OpenCV——查找、绘制轮廓
  9. Unable to start a VM due to insufficient capacity
  10. 参照示例搭建一个Quertz + Topshelf的一个作业调度服务(基础)