Bootstrap 按钮

(1)颜色

btn

btn-default

btn-primary

btn-success

btn-info

btn-warning

btn-danger

(2)大小

btn-lg
btn-sm
btn-xs
(3)块级按钮
btn-block
(4)状态
active
disabled

(5)按钮组

btn-group

(6)按钮组大小

btn-group-lg

btn-group-sm

btn-group-xs

(7)垂直按钮组

btn-group-vertical

(8)下拉框按钮组

复制代码
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>

<body>

    <div class="container-fluid">
        <div class="row clearfix">

            <div class="col-md-12 column">
                <button class="btn">按钮</button>
                <button class="btn btn-default">按钮</button>
                <button class="btn btn-primary">按钮</button>
                <button class="btn btn-success">按钮</button>
                <button class="btn btn-info">按钮</button>
                <button class="btn btn-warning">按钮</button>
                <button class="btn btn-danger">按钮</button>

            </div>

            <div class="col-md-12 columl">
                <div style="width: 300px;">
                    <button class="btn btn-block btn-warning">块级按钮</button>
                </div>
            </div>

            <div class="col-md-12 columl">
                <div>
                    <button class="btn btn-lg btn-primary">大按钮</button>
                    <button class="btn btn-sm btn-primary">中按钮</button>
                    <button class="btn btn-xs btn-primary">小按钮</button>
                </div>
            </div>

            <div class="col-md-12 columl">
                <div>
                    <button class="btn  btn-default active">已点击按钮</button>
                    <button class="btn  btn-default disabled">不可点击按钮</button>
                </div>
            </div>

            <div class="col-md-12 columl">
                <div class="btn-group">
                    <button type="button" class="btn btn-primary">按钮组</button>
                    <button type="button" class="btn btn-warning">按钮组</button>
                    <button type="button" class="btn btn-primary">按钮组</button>
                </div>
            </div>

            <div class="col-md-12 columl">
                <div class="btn-group btn-group-xs">
                    <button type="button" class="btn btn-warning">小按钮组</button>
                    <button type="button" class="btn btn-primary">小按钮组</button>
                    <button type="button" class="btn btn-warning">小按钮组</button>
                </div>
            </div>

            <div class="col-md-12 columl">
                <div class="btn-group-vertical btn-group-xs">
                    <button type="button" class="btn btn-success">垂直小按钮组</button>
                    <button type="button" class="btn btn-success">垂直小按钮组</button>
                    <button type="button" class="btn btn-success">垂直小按钮组</button>
                </div>
            </div>

            <div class="col-md-12 columl">
                <div class="btn-group">
                    <button type="button" class="btn btn-primary">下拉按钮组</button>
                    <button type="button" class="btn btn-primary">下拉按钮组</button>
                    <div class="btn-group">
                        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                            下拉按钮组 <span class="caret"></span></button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="#">下拉链接</a></li>
                            <li><a href="#">下拉链接</a></li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>

</body>

</html>
View Code
复制代码

 

posted @   南风丶轻语  阅读(169)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示
点击右上角即可分享
微信分享提示