-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2_Color-Background.html
47 lines (45 loc) · 2.32 KB
/
2_Color-Background.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color & Background</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<!-- สีข้อความ -->
<p class="text-primary">Primary</p>
<p class="text-secondary">Secondary</p>
<p class="text-success">Success</p>
<p class="text-danger">Danger</p>
<p class="text-warning">Warning</p>
<p class="text-info">Info</p>
<p class="text-light bg-dark">Light</p>
<p class="text-dark bg-danger">Dark</p>
<!-- พื้นหลัง -->
<div class="bg-primary">Background Primary</div>
<div class="bg-secondary">Background Secondary</div>
<div class="bg-success">Background Success</div>
<div class="bg-danger">Background Danger</div>
<div class="bg-warning">Background Warning</div>
<div class="bg-info">Background Info</div>
<div class="bg-light">Background Light</div>
<div class="bg-white">Background White</div>
<div class="bg-dark text-white">Background Dark</div>
<div class="bg-transparent">Background Transparent</div>
<!-- กำหนดสีให้ link -->
<p><a href="" class="text-primary">Link Primary</a></p>
<p><a href="" class="text-secondary">Link Secondary</a></p>
<p><a href="" class="text-success">Link Success</a></p>
<p><a href="" class="text-danger bg-dark">Link Danger</a></p>
<p><a href="" class="text-warning">Link Warning</a></p>
<p><a href="" class="text-info">Link Info</a></p>
<p><a href="" class="text-white bg-dark">Link White</a></p>
<p><a href="" class="text-dark">Link Dark</a></p>
<p><a href="" class="text-body">Link Body</a></p>
<p><a href="" class="text-muted">Link Muted</a></p>
</div>
</body>
</html>