Blogger Information
Blog 34
fans 0
comment 0
visits 32151
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
编写一个标准的下拉菜单+使用按钮组编写一个分裂式下拉菜单
Belifforz的博客
Original
1136 people have browsed it

实例

<!doctype html>
<html lang="zh-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../dist/css/bootstrap.css">
    <script src="../dist/js/jquery.js"></script>
    <script src="../dist/js/bootstrap.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-6">
            <p>标准下拉菜单</p>
            <div class="dropdown">
                <button type="button" class="btn btn-default" 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>
                </ul>
            </div>
        </div>
        <div class="col-md-6">
            <p>分裂式下拉菜单</p>
            <div class="btn-group">
                <button type="button" class="btn btn-info">前端开发</button>
                <div class="btn-group">
                <button type="button" class="btn btn-primary">后端开发</button>
                <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                    <li><a href="">Thinkphp</a></li>
                    <li><a href="">Laravel</a></li>
                    <li><a href="">Mysql</a></li>
                </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments