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

按钮式下拉菜单

时间:2015-09-24 16:01:23      阅读:130      评论: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="btn-group dropup">
<button type="button" class="btn btn-info btn-lg">
menu
<!-- <span class="caret"></span> -->
<button type="button" class="btn btn-lg btn-info dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">item1</a></li>
<li><a href="#">item2</a></li>
</ul>
</div>
<script src="jquery-1.11.3.js"></script>
<script src="bootstrap.min.js"></script>
</body>
</html>

按钮式下拉菜单

标签:

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

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