Bootstrap按钮组和工具栏

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
    <title>Bootstrap 101 Template</title>

    <!-- 1.加载Bootstrap层叠样式表 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    
    <!--  按钮工具栏,多个按钮组行成工具栏 -->
    <div class="toolbar" role="toolbar">
    
    <!-- 按钮组,btn-group-*设置按钮组中按钮的大小 -->
        <div class="btn-group btn-group-lg">

            <button class="btn btn-default" type="button">1</button>
            <button class="btn btn-success" type="button">2</button>
            <button class="btn btn-warning" type="button">3</button>

        </div>
        
        <!-- 按钮组 -->
        <div class="btn-group">

            <button class="btn btn-info"    type="button">4</button>
            <button class="btn btn-danger"     type="button">5</button>
            <button class="btn btn-primary" type="button">6</button>
            
        </div>
        
    </div>


</body>
</html>
<!-- 2.加载JQuery库 -->
<script src="../plugins/jquery-1.12.4.min.js"></script>
<!-- 3.加载Bootstrap核心js -->
<script src="js/bootstrap.min.js"></script>
View Code

posted @ 2016-06-06 00:43  司会铭  阅读(1850)  评论(0编辑  收藏  举报