-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1_4_bs_basic_images.html
203 lines (182 loc) · 10.3 KB
/
1_4_bs_basic_images.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap 4 Website Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<style>
#gallery img {
filter: gray;
/*for IE*/
-webkit-filter: grayscale(1);
/* Google Chrome, Safari 6+ & Opera 15+ */
-webkit-box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.75);
box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.75);
margin-top: 20px;
margin-bottom: 20px;
/*try if you only add margin-top without margin-bottom*/
}
#gallery img:hover {
filter: none;
/*for IE*/
-webkit-filter: grayscale(0);
/* Google Chrome, Safari 6+ & Opera 15+ */
}
</style>
</head>
<body>
<div class="jumbotron text-center" style="margin-bottom:0; border-radius: 0px; background-color:darkgray">
<h1>My First Bootstrap 4 Page</h1>
<p>Resize this responsive page to see the effect!</p>
</div>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row" style="margin-top:30px">
<div class="offset-4 col-8" style="background-color:#666;">
<img src="assets/cloud-lg1.png">
</div>
</div>
<div class="row" style="margin-top:30px">
<div class="offset-4 col-8" style="background-color:#777;">
<img class="img-fluid" src="assets/cloud-lg1.png">
</div>
</div>
<div class="row" style="margin-top:30px">
<div class="offset-4 col-8" style="background-color:#888;">
<img class="img-thumbnail" src="assets/cloud-lg1.png">
</div>
</div>
<div class="row" style="margin-top:30px">
<div class="offset-4 col-8" style="background-color:#999;">
<img class="img-thumbnail float-right" src="assets/cloud-lg1.png">
</div>
</div>
<div class="row" style="margin-top:30px">
<div class="offset-4 col-8" style="background-color:#AAA;">
<img class="img-thumbnail mx-auto d-block" src="assets/cloud-lg1.png">
</div>
</div>
<div class="row" style="margin-top:30px">
<div class="offset-4 col-8 text-center" style="background-color:#BBB;">
<img class="img-thumbnail" src="assets/cloud-lg1.png">
</div>
</div>
<div class="row" style="margin-top:30px">
<div class="offset-4 col-8 text-center" style="background-color:#CCC;">
<div class="row">
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="img-thumbnail" src="assets/cloud-lg1.png"></div>
</div>
</div>
</div>
<div class="row" id="gallery" style="margin-top:30px">
<h1>image gallery</h1>
<div class="offset-4 col-8 text-center" style="background-color:#DDD;">
<div class="row">
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-thumbnail" src="assets/cloud-lg1.png"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-thumbnail" src="assets/snoopy1.jpg"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-thumbnail" src="assets/snoopy2.jpg"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-fluid d-block mx-auto" src="assets/snoopy1.jpg"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-fluid d-block mx-auto" src="assets/snoopy2.jpg"></div>
<div class="col-lg-3 col-md-4 col-xs-6"><img class="rounded-circle img-fluid d-block mx-auto" src="assets/snoopy4.jpg"></div>
</div>
</div>
</div>
<div class="row" style="margin-top:30px">
<h1>carousel</h1>
<div class="offset-4 col-8 text-center" style="background-color:#BBB;">
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="assets/snoopy1.jpg" alt="First slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="assets/snoopy2.jpg" alt="Second slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="assets/snoopy3.jpg" alt="Third slide">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<div class="row" style="margin-top:30px">
<h1>card-deck</h1>
<div class="offset-4 col-8 text-center" style="background-color:#BBB;">
<div class="card-deck">
<div class="card">
<img class="card-img-top" src="assets/snoopy1.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img class="card-img-top" src="assets/cloud-lg1.png" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img class="card-img-top" src="assets/hobbit.jpeg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid text-center" style="margin-bottom:0;background-color: gainsboro; height:100px;">
<p>Footer</p>
</div>
</body>
</html>