質問するログイン新規登録

質問編集履歴

2

サイトのURL コードの書き足し

2018/11/06 08:54

投稿

hellohello
hellohello

スコア22

title CHANGED
File without changes
body CHANGED
@@ -3,16 +3,80 @@
3
3
 
4
4
  【現状】①ボタンそのものの大きさや幅は、CSSで'.swiper-button-next' を使い変えることは出来た
5
5
  ②containerをrelative、'.swiper-button-next'にabsoluteを使いtop値から10pxで指定した所、ボタンが消えて無くなった
6
- ③Qiitaや他サイトをくまなく調べたが、解決策をしらべられなった
6
+ ③Qiitaや他サイトをくまなく調べたが、解決策をしらべられなった
7
7
 
8
+ 【Swiper】[リンク内容](https://idangero.us/swiper/)プラグイン、公式サイト
8
9
  何をどう足せば外側に出せるでしょうか?
9
- ご教授頂けないでしょうか?
10
+ 以下のコードの状態で、画像のようボタンが背景と被ってしま、外にない状況す。
11
+
12
+
13
+
10
14
  どんなに小さいこと、ヒントでも頂ければ幸いです。
11
- どうかよろしくお願いいたします。
12
15
 
16
+ どうかご教授よろしくお願いいたします。
13
17
 
18
+ 以下HTML
14
19
  ```javascript Swiper
20
+ <!DOCTYPE html>
21
+ <html>
22
+
23
+ <head>
24
+ <meta charset="utf-8">
25
+ <title>ttt</title>
26
+
27
+ <link rel="stylesheet" href="big.css">
28
+ <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
29
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.1/css/swiper.min.css">
30
+ <style type="text/css">
31
+ .swiper-container {
32
+ height: 270px;
33
+ margin:20px 100px;
34
+
35
+ }
36
+
37
+ .swiper-slide {
38
+ padding-top: 180px;
39
+ text-align: center;
40
+ color: #fff;
41
+ font-size: 30px;
42
+ }
43
+
15
44
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.1/js/swiper.min.js"></script>
45
+ </head>
46
+
47
+
48
+
49
+ <!-- Slider main container -->
50
+ <div class="swiper-container">
51
+ <!-- Additional required wrapper -->
52
+ <div class="swiper-wrapper">
53
+ <!-- Slides -->
54
+ <div class="swiper-slide" style="
55
+ background-color: red;
56
+ background-repeat: no-repeat;
57
+ width: 1261px;
58
+ background-size: cover;
59
+ background-position: center center;">
60
+ </div>
61
+ <div class="swiper-slide">Slide 2</div>
62
+ <div class="swiper-slide">Slide 2</div>
63
+ </div>
64
+ <!-- If we need pagination -->
65
+ <div class="swiper-pagination"></div>
66
+
67
+ <!-- If we need navigation buttons -->
68
+ <div class="swiper-button-prev"></div>
69
+ <div class="swiper-button-next"></div>
70
+ </div>
71
+ .
72
+ .
73
+ .
74
+
75
+ .
76
+ .
77
+ .
78
+
79
+ </body>
16
80
  <script type="text/javascript">
17
81
  var mySwiper = new Swiper('.swiper-container', {
18
82
  loop: true,
@@ -20,4 +84,13 @@
20
84
  nextButton: '.swiper-button-next',
21
85
  prevButton: '.swiper-button-prev',
22
86
  })
87
+ </script>
88
+ </html>
89
+ ```
90
+
91
+ ```以下CSS部分
92
+ .swiper-pagination-bullet {
93
+ display: inline-block;
94
+ width:13px !important;
95
+ height:13px !important;
23
96
  ```

1

コードブロックで囲み忘れ

2018/11/06 08:54

投稿

hellohello
hellohello

スコア22

title CHANGED
File without changes
body CHANGED
@@ -1,11 +1,17 @@
1
1
  ![イメージ説明](d9c1358ae09253e5cfd1cbef0f25efe9.jpeg)
2
- 画像のように、Swiperスライドのボタンを外側へ出したいです。
2
+ 【実現したいこと】画像のように、Swiperスライドのボタンを外側へ出したいです。
3
- ボタンそのものの大きさや幅を変えることは出来たのですが、
4
- 色々調べたのですが、どうも外側に出すことができません。
5
3
 
4
+ 【現状】①ボタンそのものの大きさや幅は、CSSで'.swiper-button-next' を使い変えることは出来た
5
+ ②containerをrelative、'.swiper-button-next'にabsoluteを使いtop値から10pxで指定した所、ボタンが消えて無くなった
6
+ ③Qiitaや他サイトをくまなく調べたが、解決策をしらべられな買った
7
+
6
8
  何をどう足せば外側に出せるでしょうか?
7
- ご教授頂けないでしょうか?
9
+ ご教授頂けないでしょうか?
10
+ どんなに小さいこと、ヒントでも頂ければ幸いです。
11
+ どうかよろしくお願いいたします。
8
12
 
13
+
14
+ ```javascript Swiper
9
15
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.1/js/swiper.min.js"></script>
10
16
  <script type="text/javascript">
11
17
  var mySwiper = new Swiper('.swiper-container', {
@@ -13,4 +19,5 @@
13
19
  pagination: '.swiper-pagination',
14
20
  nextButton: '.swiper-button-next',
15
21
  prevButton: '.swiper-button-prev',
16
- })
22
+ })
23
+ ```