⑧bootstrap组件 文字图片 下拉菜单 按钮组 使用基础案例

时间:2021-06-17 21:00:50
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!--移动设备优先-->
    <title>bootstrap</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <style>
    </style>
</head>
<body>
<div class="container">
    <span class="glyphicon glyphicon-plus"></span>
    <a href="#" class="btn btn-default"><span class="glyphicon glyphicon-heart"></span></a>
    <button type="button" class="btn btn-danger">
        <span class="glyphicon glyphicon-home"></span>&nbsp;注册
    </button>
    <hr />

    <div class="btn-toolbar">
        <div class="btn-group">
            <a href="#" class="btn btn-default"><span class="glyphicon glyphicon-education"></span></a>
            <a href="#" class="btn btn-default"><span class="glyphicon glyphicon-ice-lolly-tasted"></span></a>
            <a href="#" class="btn btn-default"><span class="glyphicon glyphicon-text-size"></span></a>
            <a href="#" class="btn btn-default"><span class="glyphicon glyphicon-education"></span></a>
        </div>
    </div>
    <hr/>
    <button type="button" class="btn btn-default btn-sx">
        <span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
    </button>
    <hr />
    <div class="col-sm-3 col-sm-offset-2">
        <div class="input-group">
        <span class="input-group-addon">
            <span class="glyphicon glyphicon-education"></span>
        </span>
            <input type="text" class="form-control" />
        </div>

    </div>
</div>
</body>
</html>

⑧bootstrap组件  文字图片 下拉菜单 按钮组  使用基础案例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!--移动设备优先-->
    <title>bootstrap</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <style>
    </style>
</head>
<body>
<div class="container">
    <div class="dropdown col-sm-3 col-sm-offset-2">
        <button type="button" class="btn btn-danger" data-toggle="dropdown" >
            <span class="glyphicon glyphicon-user"></span>
            用户
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu dropdown-menu-left">
            <li class="dropdown-header">文件管理</li>
            <!--标题-->
            <li class="active"><a href="#">
                <!--分割线-->
                <span class="glyphicon glyphicon-off"></span>
                文件</a></li>
            <li class="disabled"><a  href="#">Disabled link</a></li>
            <li><a href="#">文件</a></li>
            <li class="divider"></li>
            <li><a href="#">文件</a></li>
        </ul>

    </div>
</div>
</body>
</html>

⑧bootstrap组件  文字图片 下拉菜单 按钮组  使用基础案例⑧bootstrap组件  文字图片 下拉菜单 按钮组  使用基础案例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!--移动设备优先-->
    <title>bootstrap</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <style>
    </style>
</head>
<body>
<div class="container">
    <hr />
    <div class="btn-group">
        <button type="button" class="btn btn-default">按钮组</button>
        <button type="button" class="btn btn-default">按钮组</button>
        <button type="button" class="btn btn-default">按钮组</button>

    </div>
    <hr />
    <div class="btn-group">
        <a href="#" class="btn btn-default">按钮组1</a>
        <a href="#" class="btn btn-default">按钮组1</a>
        <a href="#" class="btn btn-default">按钮组1</a>

    </div>
    <hr/>
    <div class="btn-toolbar">
        <div class="btn-group">
            <button type="button" class="btn btn-default">按钮组</button>
            <button type="button" class="btn btn-default">按钮组</button>
            <button type="button" class="btn btn-default">按钮组</button>

        </div>
        <div class="btn-group">
            <button type="button" class="btn btn-default">按钮组</button>
            <button type="button" class="btn btn-default">按钮组</button>
            <button type="button" class="btn btn-default">按钮组</button>

        </div>
        <div class="btn-group">
            <button type="button" class="btn btn-default">按钮组</button>
            <button type="button" class="btn btn-default">按钮组</button>
            <button type="button" class="btn btn-default">按钮组</button>

        </div>
        <hr/>
        <div class="btn-group btn-group-xs">
            <!--设置了btn-group-xs以后里面设置的btn-lg -sm不起作用-->
            <button type="button" class="btn btn-default btn-lg">按钮组</button>
            <button type="button" class="btn btn-default btn-sm">按钮组</button>
            <button type="button" class="btn btn-default">按钮组</button>

        </div>
    </div>
    <hr/>
    <div class="btn-group">
        <button type="button" class="btn btn-default">按钮组</button>
        <button type="button" class="btn btn-default">按钮组</button>
        <button type="button" class="btn btn-default">按钮组</button>
        <div class="btn-group dropdown">
            <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown">
                下拉
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                <li><a href="#">项目</a></li>
                <li><a href="#">项目</a></li>
                <li><a href="#">项目</a></li>
                <li><a href="#">项目</a></li>
            </ul>

        </div>

    </div>
    <hr />
    <div class="btn-group-vertical">
        <button type="button" class="btn btn-default">按钮组</button>
        <button type="button" class="btn btn-default">按钮组</button>
        <button type="button" class="btn btn-default">按钮组</button>
    </div>
    <div class="row">
        <!--自适应分组-->
        <div class="col-sm-6">
            <div class=" btn-group btn-group-justified">
                <div class="btn-group">
                    <button type="button" class="btn btn-default">按钮组1</button>
                </div>
                <div class="btn-group">
                    <button type="button" class="btn btn-default">按钮组2</button>
                </div>
                <div class="btn-group">
                    <button type="button" class="btn btn-default">按钮组3</button>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>

⑧bootstrap组件  文字图片 下拉菜单 按钮组  使用基础案例