【12】Bootstrap — 下拉菜单
来源:互联网 发布:淘宝客服规范 编辑:程序博客网 时间:2024/06/06 03:24
下拉菜单
<!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"> <title>Bootstrap</title> <link rel="stylesheet" href="css/bootstrap.css" /> <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> </head> <body style="padding: 20px;"> <div class="dropdown"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Another action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Something else here</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Separated link</a> </li> </ul> </div> </body></html>
菜单对齐
<!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"> <title>Bootstrap</title> <link rel="stylesheet" href="css/bootstrap.css" /> <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> </head> <body style="padding: 20px;"> <div class="dropdown" style="width: 250px"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1"> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Another action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Something else here</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Separated link</a> </li> </ul> </div> </body></html>
菜单标题
<!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"> <title>Bootstrap</title> <link rel="stylesheet" href="css/bootstrap.css" /> <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> </head> <body style="padding: 20px;"> <div class="dropdown"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu2"> <li role="presentation" class="dropdown-header">Dropdown header</li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Another action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Something else here</a> </li> <li role="presentation" class="dropdown-header">Dropdown header</li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Separated link</a> </li> </ul> </div> </body></html>
菜单分割线
<!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"> <title>Bootstrap</title> <link rel="stylesheet" href="css/bootstrap.css" /> <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> </head> <body style="padding: 20px;"> <div class="dropdown" style="width: 250px"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenuDivider"> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Another action</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Something else here</a> </li> <li role="presentation" class="divider"></li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Separated link</a> </li> </ul> </div> </body></html>
禁用的菜单项
<!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"> <title>Bootstrap</title> <link rel="stylesheet" href="css/bootstrap.css" /> <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> </head> <body style="padding: 20px;"> <div class="dropdown" style="width: 250px"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu3"> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Regular link</a> </li> <li role="presentation" class="disabled"> <a role="menuitem" tabindex="-1" href="#">Disabled link</a> </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#">Another link</a> </li> </ul> </div> </body></html>
阅读全文
0 0
- 【12】Bootstrap — 下拉菜单
- Bootstrap—按钮下拉菜单
- Bootstrap CSS——下拉菜单
- Bootstrap—制作常用下拉菜单
- Bootstrap笔记6—下拉菜单
- Bootstrap布局组件—2.下拉菜单
- 【14】Bootstrap — 按钮式下拉菜单
- Bootstrap下拉菜单
- 【Bootstrap】下拉菜单Dropdown
- bootstrap 下拉菜单
- bootstrap的下拉菜单
- Bootstrap 按钮下拉菜单
- bootstrap入门【下拉菜单】
- Bootstrap下拉菜单
- bootstrap 下拉菜单
- bootstrap的下拉菜单
- Bootstrap学习--下拉菜单
- Bootstrap学习:下拉菜单
- Android 查看动态库依赖的库文件
- 事务的隔离级别详解
- 二叉树的下一个结点
- 软件工程作业--java实现四级超纲率=(版本1)=
- [Qt] QWebView的使用
- 【12】Bootstrap — 下拉菜单
- java-CRUD封装
- Easyui DataGrid中增加行号显示
- [Qt] VS+Qt生成软件图标
- linux 程序安装目录/opt目录和/usr/local目录
- 奥威Power-BI数据可视化分析演示-邮政行业运行情况
- python的url映射
- PHP计算时间间隔
- python中矩阵的取行列操作