前端

Bootstrap下拉菜单

2022-03-28  本文已影响0人  马佳乐
        <div class="dropdown btn-group">
            <!--<button class="btn btn-success dropdown-toggle " data-toggle="dropdown">下拉菜单</button>-->
            <button class="btn btn-success btn-lg">下拉菜单</button>
            <button class="btn btn-success dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"></button>
            <div class="dropdown-menu">
                <a href="#" class="dropdown-item active">选项一</a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">选项二</a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item disabled">选项三</a>
            </div>
        </div>
        <br /><br />
        <div class="dropdown btn-group dropup">
            <!--<button class="btn btn-success dropdown-toggle " data-toggle="dropdown">下拉菜单</button>-->
            <button class="btn btn-info btn-lg">下拉菜单(箭头向上)</button>
            <button class="btn btn-info dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"></button>
            <div class="dropdown-menu dropdown-menu-right">
                <a href="#" class="dropdown-item active">选项一</a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item">选项二</a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item disabled">选项三</a>
            </div>
        </div>
上一篇下一篇

猜你喜欢

热点阅读