質問編集履歴

1

htmlとcssのコードも記載します。

2018/05/22 14:56

投稿

nenechi
nenechi

スコア6

test CHANGED
File without changes
test CHANGED
@@ -78,9 +78,289 @@
78
78
 
79
79
  }
80
80
 
81
-
82
-
83
- ```
81
+ ```
82
+
83
+ ```html
84
+
85
+ <!doctype html>
86
+
87
+ <html>
88
+
89
+ <head>
90
+
91
+ <meta charset="utf-8">
92
+
93
+ <title>架空旅館サイト</title>
94
+
95
+ <link rel="stylesheet" href="style.css">
96
+
97
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400;700">
98
+
99
+ <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
100
+
101
+ <script src="js/script.js"></script>
102
+
103
+
104
+
105
+ </head>
106
+
107
+
108
+
109
+ <body>
110
+
111
+
112
+
113
+ <header>
114
+
115
+ <div class="logo">
116
+
117
+ <a href="">
118
+
119
+ <h1>架空旅館サイト</h1>
120
+
121
+ </a>
122
+
123
+ </div>
124
+
125
+
126
+
127
+ <nav>
128
+
129
+ <ul>
130
+
131
+ <li></li>
132
+
133
+ <li><a href="">客室</a></li>
134
+
135
+ <li><a href="">お食事</a></li>
136
+
137
+ <li><a href="">船外体験</a></li>
138
+
139
+ <li><a href="">ブログ</a></li>
140
+
141
+ <li><a href="">アクセス</a></li>
142
+
143
+ </ul>
144
+
145
+ </nav>
146
+
147
+ </header>
148
+
149
+
150
+
151
+ <div class="slideshow">
152
+
153
+ <ul>
154
+
155
+ <li><img src="img/img01.png" alt=""></li>
156
+
157
+ <li><img src="img/img02.png" alt=""></li>
158
+
159
+ <li><img src="img/img03.png" alt=""></li>
160
+
161
+ </ul>
162
+
163
+ </div>
164
+
165
+
166
+
167
+
168
+
169
+ </body>
170
+
171
+ </html>
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+ ```
180
+
181
+
182
+
183
+ ```css
184
+
185
+
186
+
187
+ .slideshow ul {
188
+
189
+ width: 100%;
190
+
191
+ }
192
+
193
+
194
+
195
+ .slideshow ul li {
196
+
197
+ top: 150px;
198
+
199
+ left: 0;
200
+
201
+ width: 100%;
202
+
203
+ display: none;
204
+
205
+ position: absolute;
206
+
207
+ }
208
+
209
+
210
+
211
+ .slideshow ul li img {
212
+
213
+ width: 100%;
214
+
215
+ }
216
+
217
+
218
+
219
+ @media only screen and (max-width: 1020px) {
220
+
221
+ .slideshow {
222
+
223
+ width: 100%;
224
+
225
+ }
226
+
227
+ }
228
+
229
+
230
+
231
+ .pagiNation {
232
+
233
+ bottom: 20px;
234
+
235
+ left: 0;
236
+
237
+ width: 100%;
238
+
239
+ height: 15px;
240
+
241
+ text-align: center;
242
+
243
+ position: absolute;
244
+
245
+ z-index: 110;
246
+
247
+ }
248
+
249
+
250
+
251
+ .pagiNation a {
252
+
253
+ margin: 0;
254
+
255
+ width: 15px;
256
+
257
+ height: 15px;
258
+
259
+ display: inline-block;
260
+
261
+ overflow: hidden;
262
+
263
+ background: #aaa;
264
+
265
+ border: #fff 2px solid;
266
+
267
+ border-radius: 50%;
268
+
269
+ transition: all 0.2s ease-in-out;
270
+
271
+ }
272
+
273
+
274
+
275
+ .pagiNation a:hover {
276
+
277
+ opacity: 0.6;
278
+
279
+ }
280
+
281
+
282
+
283
+ .pagiNation a.pnActive {
284
+
285
+ background: #000;
286
+
287
+ }
288
+
289
+
290
+
291
+ .pagiNation a.pnActive:hover {
292
+
293
+ opacity: 1;
294
+
295
+ }
296
+
297
+
298
+
299
+ .slideshow .btnPrev,
300
+
301
+ .slideshow .btnNext {
302
+
303
+ margin-top: -25px;
304
+
305
+ top: 50%;
306
+
307
+ width: 50px;
308
+
309
+ height: 50px;
310
+
311
+ position: absolute;
312
+
313
+ z-index: 105;
314
+
315
+ transition: all 0.2s ease-in-out;
316
+
317
+ }
318
+
319
+
320
+
321
+ .slideshow .btnPrev {
322
+
323
+ left: 15px;
324
+
325
+ background: transparent url(../img/btnPrev.png)
326
+
327
+ no-repeat center center;
328
+
329
+ }
330
+
331
+
332
+
333
+ .slideshow .btnNext {
334
+
335
+ right: 15px;
336
+
337
+ background: transparent url(../img/btnNext.png)
338
+
339
+ no-repeat center center;
340
+
341
+ }
342
+
343
+
344
+
345
+ .slideshow .btnPrev:hover,
346
+
347
+ .slideshow .btnNext:hover {
348
+
349
+ opacity: 0.6;
350
+
351
+ }
352
+
353
+
354
+
355
+
356
+
357
+ ```
358
+
359
+
360
+
361
+
362
+
363
+
84
364
 
85
365
 
86
366