码迷,mamicode.com
首页 > 其他好文 > 详细

boostrap按钮

时间:2015-11-01 12:38:57      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:

  1. bootstrap按钮
    • 对应链接:http://v3.bootcss.com/css/#buttons
    • 使用时添加基础类class:btn
    • 默认样式class=btn-default,控制大小class=btn-(lg | sm | xs),没有btn-md,默认即为中等大小
    • 一些简单的demo以及demo效果如下所示
    • 技术分享
      <!DOCTYPE HTML>
      <html>
          <head>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
              <title>无标题文档</title>
              <meta http-equiv="X-UA-Compatible" content="IE=edge">
              <meta name="viewport" content="width=device-width, initial-scale=1">
              <link rel="stylesheet" href="css/bootstrap.css">
              <style>
                  .glyphicon-heart {font-size: 100px; color: red;}
              </style>
          </head>
      <body>
      
      <div class="container">
          <input type="button" value="按钮" class="btn" />
          <input type="button" value="按钮" class="btn btn-default" />
          <input type="button" value="按钮" class="btn btn-link" />
      
          <br>
          <input type="button" value="按钮" class="btn btn-primary" />
          <input type="button" value="按钮" class="btn btn-primary btn-lg" />
          <input type="button" value="按钮" class="btn btn-primary btn-sm" />
          <input type="button" value="按钮" class="btn btn-primary btn-xs" />
      
          <br><br>
          <input type="button" value="按钮" class="btn btn-primary" />
          <input type="button" value="按钮" class="btn btn-primary active" />
          <input type="button" value="按钮" class="btn btn-primary disabled" />
      
          <br><br>
          <a href="#" value="按钮" class="btn btn-primary">按钮</a>
          <button class="btn btn-primary">按钮</button>
          <br><br>
          <button class="btn btn-primary btn-block">按钮</button>
      </div>
      
      </body>
          <script src="js/jquery-2.1.3.js"></script>
          <script src="js/bootstrap.js"></script>
      </html>
      View Code

      技术分享

boostrap按钮

标签:

原文地址:http://www.cnblogs.com/donghualei/p/4927383.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!