質問編集履歴
1
コードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
### 前提、実現したい事
|
2
|
+
|
1
3
|
WEBサイトの模写を進めているのですが、
|
2
4
|
|
3
5
|
一旦HTMLを書き上げて、CSSをリセットした段階で
|
@@ -19,3 +21,317 @@
|
|
19
21
|
https://free-hp.net/clinic/cl_001/
|
20
22
|
|
21
23
|
こちらのトップ画像までの部分を、部分模写しようと考えています。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
### コード
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```html
|
32
|
+
|
33
|
+
<!DOCTYPE html>
|
34
|
+
|
35
|
+
<html lang="ja">
|
36
|
+
|
37
|
+
<head>
|
38
|
+
|
39
|
+
<meta charset="utf-8">
|
40
|
+
|
41
|
+
<title>練習用サイト<title>
|
42
|
+
|
43
|
+
<meta name="description" content="ページの紹介文">
|
44
|
+
|
45
|
+
<meta name="viewpoint" content="width=device-width, initial-scale=1">
|
46
|
+
|
47
|
+
<!--css-->
|
48
|
+
|
49
|
+
<link rel="stylesheet" href="CSS/style.css">
|
50
|
+
|
51
|
+
</head>
|
52
|
+
|
53
|
+
<body>
|
54
|
+
|
55
|
+
<header>
|
56
|
+
|
57
|
+
<div class="inner">
|
58
|
+
|
59
|
+
<h1><a href="/"><img src="IMAGE/template-logo01.png" alt="ロゴ画像"></a></h1>
|
60
|
+
|
61
|
+
<h2>お電話でのご予約はこちら</h2>
|
62
|
+
|
63
|
+
<p>03-1234-5678</p>
|
64
|
+
|
65
|
+
<a href="#">WEB予約</a>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
</header>
|
70
|
+
|
71
|
+
<nav>
|
72
|
+
|
73
|
+
<ul>
|
74
|
+
|
75
|
+
<li><a href="#">MENU</a></li>
|
76
|
+
|
77
|
+
<li><a href="#">MENU</a></li>
|
78
|
+
|
79
|
+
<li><a href="#">MENU</a></li>
|
80
|
+
|
81
|
+
<li><a href="#">MENU</a></li>
|
82
|
+
|
83
|
+
<li><a href="#">MENU</a></li>
|
84
|
+
|
85
|
+
<li><a href="#">MENU</a></li>
|
86
|
+
|
87
|
+
<li><a href="#">MENU</a></li>
|
88
|
+
|
89
|
+
<li><a href="#">MENU</a></li>
|
90
|
+
|
91
|
+
<li><a href="#">MENU</a></li>
|
92
|
+
|
93
|
+
</ul>
|
94
|
+
|
95
|
+
</nav>
|
96
|
+
|
97
|
+
<div class="top-wrapper">
|
98
|
+
|
99
|
+
<div class="inner">
|
100
|
+
|
101
|
+
<div class="top-wrapper-content">
|
102
|
+
|
103
|
+
<h2>Hello, world!</h2>
|
104
|
+
|
105
|
+
<p>This is a simple hero unit, a simple jumbotron-style<br>
|
106
|
+
|
107
|
+
component for calling extra attention to featured content or information.</p>
|
108
|
+
|
109
|
+
<hr>
|
110
|
+
|
111
|
+
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</body>
|
120
|
+
|
121
|
+
</html>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
```css
|
130
|
+
|
131
|
+
/*
|
132
|
+
|
133
|
+
html5doctor.com Reset Stylesheet
|
134
|
+
|
135
|
+
v1.6.1
|
136
|
+
|
137
|
+
Last Updated: 2010-09-17
|
138
|
+
|
139
|
+
Author: Richard Clark - http://richclarkdesign.com
|
140
|
+
|
141
|
+
Twitter: @rich_clark
|
142
|
+
|
143
|
+
*/
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
html, body, div, span, object, iframe,
|
148
|
+
|
149
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
150
|
+
|
151
|
+
abbr, address, cite, code,
|
152
|
+
|
153
|
+
del, dfn, em, img, ins, kbd, q, samp,
|
154
|
+
|
155
|
+
small, strong, sub, sup, var,
|
156
|
+
|
157
|
+
b, i,
|
158
|
+
|
159
|
+
dl, dt, dd, ol, ul, li,
|
160
|
+
|
161
|
+
fieldset, form, label, legend,
|
162
|
+
|
163
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
164
|
+
|
165
|
+
article, aside, canvas, details, figcaption, figure,
|
166
|
+
|
167
|
+
footer, header, hgroup, menu, nav, section, summary,
|
168
|
+
|
169
|
+
time, mark, audio, video {
|
170
|
+
|
171
|
+
margin:0;
|
172
|
+
|
173
|
+
padding:0;
|
174
|
+
|
175
|
+
border:0;
|
176
|
+
|
177
|
+
outline:0;
|
178
|
+
|
179
|
+
font-size:100%;
|
180
|
+
|
181
|
+
vertical-align:baseline;
|
182
|
+
|
183
|
+
background:transparent;
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
body {
|
190
|
+
|
191
|
+
line-height:1;
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
article,aside,details,figcaption,figure,
|
198
|
+
|
199
|
+
footer,header,hgroup,menu,nav,section {
|
200
|
+
|
201
|
+
display:block;
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
nav ul {
|
208
|
+
|
209
|
+
list-style:none;
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
blockquote, q {
|
216
|
+
|
217
|
+
quotes:none;
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
blockquote:before, blockquote:after,
|
224
|
+
|
225
|
+
q:before, q:after {
|
226
|
+
|
227
|
+
content:'';
|
228
|
+
|
229
|
+
content:none;
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
a {
|
236
|
+
|
237
|
+
margin:0;
|
238
|
+
|
239
|
+
padding:0;
|
240
|
+
|
241
|
+
font-size:100%;
|
242
|
+
|
243
|
+
vertical-align:baseline;
|
244
|
+
|
245
|
+
background:transparent;
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
/* change colours to suit your needs */
|
252
|
+
|
253
|
+
ins {
|
254
|
+
|
255
|
+
background-color:#ff9;
|
256
|
+
|
257
|
+
color:#000;
|
258
|
+
|
259
|
+
text-decoration:none;
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
/* change colours to suit your needs */
|
266
|
+
|
267
|
+
mark {
|
268
|
+
|
269
|
+
background-color:#ff9;
|
270
|
+
|
271
|
+
color:#000;
|
272
|
+
|
273
|
+
font-style:italic;
|
274
|
+
|
275
|
+
font-weight:bold;
|
276
|
+
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
del {
|
282
|
+
|
283
|
+
text-decoration: line-through;
|
284
|
+
|
285
|
+
}
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
abbr[title], dfn[title] {
|
290
|
+
|
291
|
+
border-bottom:1px dotted;
|
292
|
+
|
293
|
+
cursor:help;
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
table {
|
300
|
+
|
301
|
+
border-collapse:collapse;
|
302
|
+
|
303
|
+
border-spacing:0;
|
304
|
+
|
305
|
+
}
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
/* change border colour to suit your needs */
|
310
|
+
|
311
|
+
hr {
|
312
|
+
|
313
|
+
display:block;
|
314
|
+
|
315
|
+
height:1px;
|
316
|
+
|
317
|
+
border:0;
|
318
|
+
|
319
|
+
border-top:1px solid #cccccc;
|
320
|
+
|
321
|
+
margin:1em 0;
|
322
|
+
|
323
|
+
padding:0;
|
324
|
+
|
325
|
+
}
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
input, select {
|
330
|
+
|
331
|
+
vertical-align:middle;
|
332
|
+
|
333
|
+
}
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
```
|