-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02.下拉框.html
48 lines (47 loc) · 1.65 KB
/
02.下拉框.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!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">
<title>02.下拉框</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<style media="screen">
.dropup{
margin-top: 200px;
}
</style>
</head>
<body>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
下拉菜单
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu1">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
<div class="dropup">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
上拉菜单
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-lablledby="dropddownMenu2">
<li class="dropdown-header">your skills</li>
<li>Android</li>
<li class="disabled"><a href="#">Java</a></li>
<li>Web</li>
<li class="divider" role="separator"></li>
<li class="dropdown-header">footer</li>
</ul>
</div>
</body>
</html>