标签:
<!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>
标签:
原文地址:http://www.cnblogs.com/htmlphp/p/4834888.html