質問編集履歴
5
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,14 +4,12 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
+
https://garigaricode.com/swiper_navigation/#sample4
|
8
|
+
|
9
|
+
|
10
|
+
|
7
11
|
試したこと
|
8
12
|
|
9
|
-
https://garigaricode.com/swiper_navigation/#sample4
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
試したこと
|
14
|
-
|
15
13
|
|
16
14
|
|
17
15
|
・サイト内コード通りにコーディング
|
4
全体的に情報を変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
swiperに
|
1
|
+
swiperによるスライダーにオーバーレイをぴったり貼り付けたい
|
test
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
ページネーションのドットをoverlayのかかったスライダーの外に出した
|
1
|
+
下記のサイト通りにページネーションのドットをoverlayのかかったスライダーの外に出したのですが、
|
2
|
+
|
3
|
+
レスポンシブ 時にオーバーレイの高さがスライダーと一致せずオーバーレイがページネーションにかかってしまう。
|
2
4
|
|
3
5
|
|
4
6
|
|
@@ -6,10 +8,6 @@
|
|
6
8
|
|
7
9
|
https://garigaricode.com/swiper_navigation/#sample4
|
8
10
|
|
9
|
-
https://jsfiddle.net/25hym0s4/
|
10
|
-
|
11
|
-
上記のサイトを参考に同じようにコーディングしてみましたができませんでした。
|
12
|
-
|
13
11
|
|
14
12
|
|
15
13
|
試したこと
|
@@ -18,7 +16,7 @@
|
|
18
16
|
|
19
17
|
・サイト内コード通りにコーディング
|
20
18
|
|
21
|
-
・
|
19
|
+
・ブレークポイントごとにオーバーレイの高さを変更したが、画面幅を変えるとオーバーレイの灰色がスライダーから飛び出したり縮んだりしてしまう。
|
22
20
|
|
23
21
|
|
24
22
|
|
3
HTMLとCSS全体の記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,77 @@
|
|
24
24
|
|
25
25
|
```html
|
26
26
|
|
27
|
+
<div id="mv">
|
28
|
+
|
29
|
+
<div class="swiper-parent">
|
30
|
+
|
31
|
+
<div class="swiper-container">
|
32
|
+
|
33
|
+
<div class="swiper-wrapper">
|
34
|
+
|
27
|
-
<div class="swiper-slide">
|
35
|
+
<div class="swiper-slide">
|
36
|
+
|
37
|
+
<img src="img/top1.png" alt="" />
|
38
|
+
|
39
|
+
<div class="mv-overlay"></div>
|
40
|
+
|
41
|
+
<div class="swiper-txt-set">
|
42
|
+
|
43
|
+
<p class="mv-main-txt">
|
44
|
+
|
45
|
+
We value customers <br />
|
46
|
+
|
47
|
+
more than anyone.
|
48
|
+
|
49
|
+
</p>
|
50
|
+
|
51
|
+
<p class="mv-sub-txt">
|
52
|
+
|
53
|
+
We’re a creative digital marketing company<br class="brpc" />
|
54
|
+
|
55
|
+
that helps you bring better results.
|
56
|
+
|
57
|
+
</p>
|
58
|
+
|
59
|
+
<div class="btn-wrapper swiper-btn">
|
60
|
+
|
61
|
+
<a href="" class="swiper-btn-link btn-link">MORE</a>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div class="swiper-slide">
|
70
|
+
|
71
|
+
<img src="img/top2.png" alt="" />
|
72
|
+
|
73
|
+
<div class="mv-overlay"></div>
|
74
|
+
|
75
|
+
<div class="swiper-txt-set">
|
76
|
+
|
77
|
+
<p class="mv-main-txt">
|
78
|
+
|
79
|
+
We’re a creative<br />
|
80
|
+
|
81
|
+
marketing team
|
82
|
+
|
83
|
+
</p>
|
84
|
+
|
85
|
+
<p class="mv-sub-txt">
|
86
|
+
|
87
|
+
We’re a creative digital marketing company
|
88
|
+
|
89
|
+
<br />that helps you bring better results.
|
90
|
+
|
91
|
+
</p>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div class="swiper-slide">
|
28
98
|
|
29
99
|
<img src="img/top3.png" alt="" />
|
30
100
|
|
@@ -56,6 +126,10 @@
|
|
56
126
|
|
57
127
|
</div>
|
58
128
|
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
59
133
|
```
|
60
134
|
|
61
135
|
|
@@ -142,6 +216,34 @@
|
|
142
216
|
|
143
217
|
}
|
144
218
|
|
219
|
+
|
220
|
+
|
221
|
+
.swiper-parent {
|
222
|
+
|
223
|
+
position: relative;
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
/* Swiper本体 */
|
228
|
+
|
229
|
+
.swiper-container {
|
230
|
+
|
231
|
+
padding-bottom: 50px !important;
|
232
|
+
|
233
|
+
box-sizing: content-box;
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
.swiper-button-prev, .swiper-button-next {
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
margin-top: -22px;
|
244
|
+
|
245
|
+
}
|
246
|
+
|
145
247
|
```
|
146
248
|
|
147
249
|
|
2
試したことの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
ページネーションのドットをスライダーの外に出したい
|
1
|
+
ページネーションのドットをoverlayのかかったスライダーの外に出したい
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -9,6 +9,16 @@
|
|
9
9
|
https://jsfiddle.net/25hym0s4/
|
10
10
|
|
11
11
|
上記のサイトを参考に同じようにコーディングしてみましたができませんでした。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
試したこと
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
・サイト内コード通りにコーディング
|
20
|
+
|
21
|
+
・1つ目のサイトにならい.swiper-containerにpadding-bottomをつけた際下に余白は伸びるがそれと同時にoverlayも伸びてしまう。overlayの外にページネーション を出したい
|
12
22
|
|
13
23
|
|
14
24
|
|
@@ -136,10 +146,8 @@
|
|
136
146
|
|
137
147
|
|
138
148
|
|
139
|
-
その他試したこと
|
140
|
-
|
141
|
-
.スライダーの外に出すためにswiper-paginationに対してmargin-topをつけてみましたが変化なし。
|
142
149
|
|
143
150
|
|
144
151
|
|
152
|
+
|
145
|
-
|
153
|
+
どなたか解決策をご教授ください。
|
1
試したことの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -92,8 +92,6 @@
|
|
92
92
|
|
93
93
|
left: 15rem;
|
94
94
|
|
95
|
-
flex-shrink: 4;
|
96
|
-
|
97
95
|
}
|
98
96
|
|
99
97
|
.mv-main-txt{
|
@@ -136,4 +134,12 @@
|
|
136
134
|
|
137
135
|
```
|
138
136
|
|
137
|
+
|
138
|
+
|
139
|
+
その他試したこと
|
140
|
+
|
141
|
+
.スライダーの外に出すためにswiper-paginationに対してmargin-topをつけてみましたが変化なし。
|
142
|
+
|
143
|
+
|
144
|
+
|
139
145
|
以前にページネーションをスライダーから出した時は1番目のサイトでできたのですが今回できないのはoverlayが付いているからでしょうか?私のswiperに対する知識の無さから原因が特定できません。どなたか解決策をご教授ください。
|