質問編集履歴
1
htmlを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,7 +42,45 @@
|
|
42
42
|
|
43
43
|
```
|
44
44
|
|
45
|
+
```html
|
46
|
+
|
47
|
+
<div class="slide">
|
48
|
+
|
49
|
+
<div class="slide__show">
|
50
|
+
|
51
|
+
<div id="js-slide" class="slide__inner">
|
52
|
+
|
53
|
+
<a href="" class="slide__item">スライド</a>
|
54
|
+
|
55
|
+
<a href="" class="slide__item">スライド</a>
|
56
|
+
|
57
|
+
<a href="" class="slide__item">スライド</a>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
<div id="js-prev" class="slide__btn--prev">前へ</div>
|
62
|
+
|
63
|
+
<div id="js-next" class="slide__btn--next">次へ</div>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
```
|
70
|
+
|
45
71
|
```css
|
72
|
+
|
73
|
+
.slide__show {
|
74
|
+
|
75
|
+
position: relative;
|
76
|
+
|
77
|
+
width: 690px;
|
78
|
+
|
79
|
+
margin: 0 auto;
|
80
|
+
|
81
|
+
height: 540px;
|
82
|
+
|
83
|
+
}
|
46
84
|
|
47
85
|
.slide__inner {
|
48
86
|
|
@@ -51,6 +89,10 @@
|
|
51
89
|
top: 0;
|
52
90
|
|
53
91
|
left: -690px;
|
92
|
+
|
93
|
+
display: flex;
|
94
|
+
|
95
|
+
flex-wrap: nowrap;
|
54
96
|
|
55
97
|
}
|
56
98
|
|