質問編集履歴
2
サイトのURL コードの書き足し
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,25 +8,153 @@
|
|
8
8
|
|
9
9
|
②containerをrelative、'.swiper-button-next'にabsoluteを使いtop値から10pxで指定した所、ボタンが消えて無くなった
|
10
10
|
|
11
|
-
③Qiitaや他サイトをくまなく調べたが、解決策をしらべられな
|
11
|
+
③Qiitaや他サイトをくまなく調べたが、解決策をしらべられなかった
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
+
【Swiper】[リンク内容](https://idangero.us/swiper/)プラグイン、公式サイト
|
16
|
+
|
15
17
|
何をどう足せば外側に出せるでしょうか?
|
16
18
|
|
17
|
-
ご教授頂けないでしょうか?
|
18
|
-
|
19
|
-
|
19
|
+
以下のコードの状態で、画像のようなボタンが背景と被ってしまい、外にない状況です。
|
20
|
-
|
21
|
-
どうかよろしくお願いいたします。
|
22
20
|
|
23
21
|
|
24
22
|
|
25
23
|
|
26
24
|
|
25
|
+
|
26
|
+
|
27
|
+
どんなに小さいこと、ヒントでも頂ければ幸いです。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
どうかご教授よろしくお願いいたします。
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
以下HTML
|
36
|
+
|
27
37
|
```javascript Swiper
|
28
38
|
|
39
|
+
<!DOCTYPE html>
|
40
|
+
|
41
|
+
<html>
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
<head>
|
46
|
+
|
47
|
+
<meta charset="utf-8">
|
48
|
+
|
49
|
+
<title>ttt</title>
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<link rel="stylesheet" href="big.css">
|
54
|
+
|
55
|
+
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
|
56
|
+
|
57
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.1/css/swiper.min.css">
|
58
|
+
|
59
|
+
<style type="text/css">
|
60
|
+
|
61
|
+
.swiper-container {
|
62
|
+
|
63
|
+
height: 270px;
|
64
|
+
|
65
|
+
margin:20px 100px;
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
.swiper-slide {
|
74
|
+
|
75
|
+
padding-top: 180px;
|
76
|
+
|
77
|
+
text-align: center;
|
78
|
+
|
79
|
+
color: #fff;
|
80
|
+
|
81
|
+
font-size: 30px;
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
29
87
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.1/js/swiper.min.js"></script>
|
88
|
+
|
89
|
+
</head>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- Slider main container -->
|
98
|
+
|
99
|
+
<div class="swiper-container">
|
100
|
+
|
101
|
+
<!-- Additional required wrapper -->
|
102
|
+
|
103
|
+
<div class="swiper-wrapper">
|
104
|
+
|
105
|
+
<!-- Slides -->
|
106
|
+
|
107
|
+
<div class="swiper-slide" style="
|
108
|
+
|
109
|
+
background-color: red;
|
110
|
+
|
111
|
+
background-repeat: no-repeat;
|
112
|
+
|
113
|
+
width: 1261px;
|
114
|
+
|
115
|
+
background-size: cover;
|
116
|
+
|
117
|
+
background-position: center center;">
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="swiper-slide">Slide 2</div>
|
122
|
+
|
123
|
+
<div class="swiper-slide">Slide 2</div>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<!-- If we need pagination -->
|
128
|
+
|
129
|
+
<div class="swiper-pagination"></div>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<!-- If we need navigation buttons -->
|
134
|
+
|
135
|
+
<div class="swiper-button-prev"></div>
|
136
|
+
|
137
|
+
<div class="swiper-button-next"></div>
|
138
|
+
|
139
|
+
</div>
|
140
|
+
|
141
|
+
.
|
142
|
+
|
143
|
+
.
|
144
|
+
|
145
|
+
.
|
146
|
+
|
147
|
+
略
|
148
|
+
|
149
|
+
.
|
150
|
+
|
151
|
+
.
|
152
|
+
|
153
|
+
.
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</body>
|
30
158
|
|
31
159
|
<script type="text/javascript">
|
32
160
|
|
@@ -42,4 +170,22 @@
|
|
42
170
|
|
43
171
|
})
|
44
172
|
|
173
|
+
</script>
|
174
|
+
|
175
|
+
</html>
|
176
|
+
|
45
177
|
```
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
```以下CSS部分
|
182
|
+
|
183
|
+
.swiper-pagination-bullet {
|
184
|
+
|
185
|
+
display: inline-block;
|
186
|
+
|
187
|
+
width:13px !important;
|
188
|
+
|
189
|
+
height:13px !important;
|
190
|
+
|
191
|
+
```
|
1
コードブロックで囲み忘れ
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,18 +1,30 @@
|
|
1
1
|

|
2
2
|
|
3
|
-
画像のように、Swiperスライドのボタンを外側へ出したいです。
|
3
|
+
【実現したいこと】画像のように、Swiperスライドのボタンを外側へ出したいです。
|
4
4
|
|
5
|
-
ボタンそのものの大きさや幅を変えることは出来たのですが、
|
6
5
|
|
6
|
+
|
7
|
+
【現状】①ボタンそのものの大きさや幅は、CSSで'.swiper-button-next' を使い変えることは出来た
|
8
|
+
|
9
|
+
②containerをrelative、'.swiper-button-next'にabsoluteを使いtop値から10pxで指定した所、ボタンが消えて無くなった
|
10
|
+
|
7
|
-
|
11
|
+
③Qiitaや他サイトをくまなく調べたが、解決策をしらべられな買った
|
8
12
|
|
9
13
|
|
10
14
|
|
11
15
|
何をどう足せば外側に出せるでしょうか?
|
12
16
|
|
13
|
-
ご教授頂けないでしょうか?
|
17
|
+
ご教授頂けないでしょうか?
|
18
|
+
|
19
|
+
どんなに小さいこと、ヒントでも頂ければ幸いです。
|
20
|
+
|
21
|
+
どうかよろしくお願いいたします。
|
14
22
|
|
15
23
|
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
```javascript Swiper
|
16
28
|
|
17
29
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.1/js/swiper.min.js"></script>
|
18
30
|
|
@@ -29,3 +41,5 @@
|
|
29
41
|
prevButton: '.swiper-button-prev',
|
30
42
|
|
31
43
|
})
|
44
|
+
|
45
|
+
```
|