質問編集履歴
1
CSS追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,13 +46,13 @@
|
|
46
46
|
|
47
47
|
<ul class="slider-list clearfix">
|
48
48
|
|
49
|
-
<li><img src="img/1.jpg" alt=""></li>
|
50
|
-
|
51
|
-
<li><img src="
|
49
|
+
<li><img src="http://placehold.jp/150x150.png" alt=""></li>
|
50
|
+
|
52
|
-
|
51
|
+
<li><img src="http://placehold.jp/3d4070/ffffff/150x150.png" alt=""></li>
|
52
|
+
|
53
|
-
<li><img src="
|
53
|
+
<li><img src="http://placehold.jp/150x150.png" alt=""></li>
|
54
|
-
|
54
|
+
|
55
|
-
<li><img src="
|
55
|
+
<li><img src="http://placehold.jp/3d4070/ffffff/150x150.png" alt=""></li>
|
56
56
|
|
57
57
|
</ul>
|
58
58
|
|
@@ -147,3 +147,79 @@
|
|
147
147
|
</html>
|
148
148
|
|
149
149
|
```
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
```css
|
154
|
+
|
155
|
+
.slider-wrap {
|
156
|
+
|
157
|
+
width: 600px;
|
158
|
+
|
159
|
+
padding: 10px;
|
160
|
+
|
161
|
+
margin: 0 auto;
|
162
|
+
|
163
|
+
border-radius: 10px;
|
164
|
+
|
165
|
+
background-color: #DDD;
|
166
|
+
|
167
|
+
box-shadow: 0 2px 5px rgba(50, 50, 50, 0.4);
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
.slider-area {
|
172
|
+
|
173
|
+
position: relative;
|
174
|
+
|
175
|
+
width: 600px;
|
176
|
+
|
177
|
+
height: 300px;
|
178
|
+
|
179
|
+
background-color: #FFF;
|
180
|
+
|
181
|
+
overflow: hidden;
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
.slider-list {
|
186
|
+
|
187
|
+
position: absolute;
|
188
|
+
|
189
|
+
top: 0;
|
190
|
+
|
191
|
+
left: 0;
|
192
|
+
|
193
|
+
width: 2400px;
|
194
|
+
|
195
|
+
height: 300px;
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
.slider-list > li { float: left; }
|
200
|
+
|
201
|
+
.slider-ctrl-btn {
|
202
|
+
|
203
|
+
position: absolute;
|
204
|
+
|
205
|
+
top: 50%;
|
206
|
+
|
207
|
+
width: 30px;
|
208
|
+
|
209
|
+
height: 30px;
|
210
|
+
|
211
|
+
margin-top: -15px;
|
212
|
+
|
213
|
+
cursor: pointer;
|
214
|
+
|
215
|
+
border-radius: 15px;
|
216
|
+
|
217
|
+
background-color: rgba(255, 255, 255, 0.5);
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
.slider-ctrl-btn.prev { left: 30px; }
|
222
|
+
|
223
|
+
.slider-ctrl-btn.next { right: 30px; }
|
224
|
+
|
225
|
+
```
|