- "zh-CN">
- "utf-8">
- "X-UA-Compatible" content="IE=edge">
- "viewport" content="width=device-width, initial-scale=1">
- "CSS/bootstrap.min.css" rel="stylesheet">
- for IE8 support of html5 elements and media queries -->
- 't work if you view the page via file:// -->
- if lt IE 9]>
- "https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js">
- "https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js">
- class="btn-group">
- "button" class="btn btn-danger">请选择
- "button" class="btn btn-danger dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
- class="caret"/>
- class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
- "presentation">"menuitem" tabindex="-1" href="#">1
- "presentation" class="divider">
- "presentation">"menuitem" tabindex="-1" href="#">2
- class="btn-group dropup">
- "button" class="btn btn-danger">请选择
- "button" class="btn btn-danger dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
- class="caret"/>
- class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
- "presentation">"menuitem" tabindex="-1" href="#">1
- "presentation" class="divider">
- "presentation">"menuitem" tabindex="-1" href="#">1
- "https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js">
- "js/bootstrap.min.js">
效果
以上仅为学习笔记~
来源: http://www.bubuko.com/infodetail-1968228.html