码迷,mamicode.com
首页 > 其他好文 > 详细

Bootstrap例子——下拉菜单

时间:2015-09-24 12:30:03      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css"> -->
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
<!-- <link rel="stylesheet" type="text/css" href="foo.css"> -->
<script src="foo.js"></script>
</head>
<body>
<div class="container">
<div class="dropdown pull-right">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="true">
subway path
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li role="presentation" class="dropdown-header">metro</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">num1</a></li>
<li role="presentation" class="disabled"><a role="menuitem" tabindex="-1" href="#">num2</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">num3</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation" class="dropdown-header">metro</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">num1</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">num2</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">num3</a></li>
</ul>
</div>
</div>
<script src="jquery-1.11.3.js"></script>
<script src="bootstrap.min.js"></script>
</body>
</html>

Bootstrap例子——下拉菜单

标签:

原文地址:http://www.cnblogs.com/htmlphp/p/4834888.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!