按钮组件.html

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <!--bootstrap要引入的文件:bootstrap.min.css,jquery.min.js,bootrap.min.js-->
        <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
        <script src="js/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
        <!--要在bootstrap之前引入jquery,bootstrap依赖JQUERY,因为bootstrapJS里要使用$这个jquery变量-->
        <!--<script src="js/popper.js" type="text/javascript" charset="utf-8"></script>-->
        <!--如果你要用bootstrap使用一些提示性的交互,那么就需要引入提示性的框架popper.js,因为bootstrap的提示就是依赖popper-->
        <script src="js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
        <a class="btn btn-primary" href="#" role="button">Link</a>
        <button class="btn btn-primary" type="submit">Button</button>
        <input class="btn btn-primary" type="button" value="Input">
        <input class="btn btn-primary" type="submit" value="Submit">
        <input class="btn btn-primary" type="reset" value="Reset">
        
        
        <hr />
        <button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>

<button type="button" class="btn btn-link">Link</button>

        <hr />
        <button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-light">Light</button>
<button type="button" class="btn btn-outline-dark">Dark</button>


<hr />
<button type="button" class="btn btn-primary btn-lg">Large button</button>
<button type="button" class="btn btn-secondary btn-lg">Large button</button>

<hr />
<button type="button" class="btn btn-primary btn-sm">Small button</button>
<button type="button" class="btn btn-secondary btn-sm">Small button</button>


<hr />
<button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
<button type="button" class="btn btn-secondary btn-lg btn-block">Block level button</button>

<hr />
<button type="button" class="btn btn-primary btn-lg btn-block" disabled="disabled">Block level button</button>
<a type="button" class="btn btn-secondary btn-lg btn-block disabled">Block level button</a>

<hr />
<button type="button" class="btn btn-primary" data-toggle="button" autocomplete="off">
  Single toggle
</button>


<hr />
<div class="btn-group btn-group-toggle btn-group-vertical" data-toggle="buttons">
  <label class="btn btn-primary active" id="choose1">
    <input type="radio" name="options" id="option1" autocomplete="off" checked> Active
  </label>
  <label class="btn btn-danger">
    <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>
    </body>
</html>

 

posted @ 2019-03-18 21:04  就这样子吧  阅读(520)  评论(0编辑  收藏  举报