-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathEp11.List.html
52 lines (52 loc) · 2.13 KB
/
Ep11.List.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
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>List</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.js"></script>
</head>
<body>
<div class="container" style="margin-top: 20px;">
<!-- List แบบ UL -->
<ul class="list-group">
<li class="list-group-item">Item 1</li>
<li class="list-group-item">Item 2</li>
</ul>
<br>
<!-- List แบบ Link -->
<ul class="list-group">
<a href="#" class="list-group-item">Item 1</a>
<a href="#" class="list-group-item">Item 2</a>
</ul>
<br>
<!-- List แบบ Active -->
<ul class="list-group">
<a href="#" class="list-group-item active">Item 1</a>
<a href="#" class="list-group-item">Item 2</a>
</ul>
<br>
<!-- กำหนดสีให้ List -->
<ul class="list-group">
<li class="list-group-item">List Regular</li>
<li class="list-group-item list-group-item-primary">List Primary</li>
<li class="list-group-item list-group-item-secondary">List Secondary</li>
<li class="list-group-item list-group-item-success">List Success</li>
<li class="list-group-item list-group-item-danger">List Danger</li>
<li class="list-group-item list-group-item-warning">List Warning</li>
<li class="list-group-item list-group-item-info">List Info</li>
<li class="list-group-item list-group-item-light">List Light</li>
<li class="list-group-item list-group-item-dark">List Dark</li>
</ul>
<br>
<!-- List แบบไม่มีขอบ -->
<ul class="list-group list-group-flush">
<a class="list-group-item">Item 1</a>
<a class="list-group-item">Item 2</a>
<a class="list-group-item">Item 3</a>
<a class="list-group-item">Item 4</a>
</ul>
</div>
</body>
</html>