質問編集履歴
7
ソースコードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,11 +24,9 @@
|
|
24
24
|
|
25
25
|
###該当のソースコード
|
26
26
|
|
27
|
-
[・bxslider実装テストソースコード(Gigafile)
|
28
|
-
|
29
|
-
http://19.gigafile.nu/0312-c8d0bee82c454f9f7e2bf5a0da992f0e6](・bxslider実装テストソースコード(Gigafile)
|
30
|
-
|
31
|
-
http://19.gigafile.nu/0312-c8d0bee82c454f9f7e2bf5a0da992f0e6)
|
27
|
+
[bxslider実装テストソースコード(Gigafile)](http://19.gigafile.nu/0312-c8d0bee82c454f9f7e2bf5a0da992f0e6)
|
28
|
+
|
29
|
+
|
32
30
|
|
33
31
|
・ファイル階層
|
34
32
|
|
6
url
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,9 +24,11 @@
|
|
24
24
|
|
25
25
|
###該当のソースコード
|
26
26
|
|
27
|
-
・bxslider実装テストソースコード(Gigafile)
|
27
|
+
[・bxslider実装テストソースコード(Gigafile)
|
28
|
+
|
28
|
-
|
29
|
+
http://19.gigafile.nu/0312-c8d0bee82c454f9f7e2bf5a0da992f0e6](・bxslider実装テストソースコード(Gigafile)
|
30
|
+
|
29
|
-
http://19.gigafile.nu/0312-c8d0bee82c454f9f7e2bf5a0da992f0e6
|
31
|
+
http://19.gigafile.nu/0312-c8d0bee82c454f9f7e2bf5a0da992f0e6)
|
30
32
|
|
31
33
|
・ファイル階層
|
32
34
|
|
5
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,37 +60,123 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
<
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<
|
76
|
-
|
77
|
-
<li
|
78
|
-
|
79
|
-
<
|
80
|
-
|
81
|
-
<
|
82
|
-
|
83
|
-
<
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
</
|
88
|
-
|
89
|
-
<
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
63
|
+
```html
|
64
|
+
|
65
|
+
<!DOCTYPE html>
|
66
|
+
|
67
|
+
<html lang="ja">
|
68
|
+
|
69
|
+
<head>
|
70
|
+
|
71
|
+
<meta charset="UTF-8">
|
72
|
+
|
73
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
74
|
+
|
75
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
76
|
+
|
77
|
+
<title>bxslider</title>
|
78
|
+
|
79
|
+
<!--共通js-->
|
80
|
+
|
81
|
+
<script type="text/javascript" src="./js/import.js"></script>
|
82
|
+
|
83
|
+
<!--ページ専用js-->
|
84
|
+
|
85
|
+
<script type="text/javascript" src="./js/plugin/bxslider.js"></script>
|
86
|
+
|
87
|
+
<script type="text/javascript" src="./js/index.js"></script>
|
88
|
+
|
89
|
+
<!--ページ専用css-->
|
90
|
+
|
91
|
+
<link type="text/css" rel="stylesheet" href="./css/bxslider.css">
|
92
|
+
|
93
|
+
<link type="text/css" rel="stylesheet" href="./css/test.css">
|
94
|
+
|
95
|
+
</head>
|
96
|
+
|
97
|
+
<body>
|
98
|
+
|
99
|
+
<div id="menu">
|
100
|
+
|
101
|
+
<div class="menu-image">
|
102
|
+
|
103
|
+
<ul class="bxslider">
|
104
|
+
|
105
|
+
<li></li>
|
106
|
+
|
107
|
+
<li></li>
|
108
|
+
|
109
|
+
<li></li>
|
110
|
+
|
111
|
+
<li></li>
|
112
|
+
|
113
|
+
<li></li>
|
114
|
+
|
115
|
+
<li></li>
|
116
|
+
|
117
|
+
</ul>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
</body>
|
124
|
+
|
125
|
+
</html>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
```
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
```css
|
134
|
+
|
135
|
+
#menu { width: 100%; min-width: 1020px; overflow: hidden; }
|
136
|
+
|
137
|
+
#menu .menu-image { position: relative; width: 700px; margin: 0 auto; }
|
138
|
+
|
139
|
+
#menu .menu-image ul { position: absolute; height: 250px; overflow: hidden; margin: 0 auto; }
|
140
|
+
|
141
|
+
#menu .menu-image ul li { width: 700px; height: 250px; background: #fff; margin: 0 auto; padding: 20px; border: 2px solid #0e2544; box-sizing: border-box; }
|
142
|
+
|
143
|
+
#menu .menu-image ul li .image-area { margin: 0 30px 0 0; }
|
144
|
+
|
145
|
+
#menu .menu-image ul li .text-area h3 { font-size: 20px; margin: 25px 0; }
|
146
|
+
|
147
|
+
#menu .menu-image ul li .text-area .text { font-size: 16px; line-height: 1.3; width: 320px; }
|
148
|
+
|
149
|
+
#menu .menu-image ul li .text-area .more { position: relative; text-align: center; width: 150px; height: 30px; margin: 40px auto; font-size: 14px; font-weight: bold; line-height: 30px; border: 2px solid #0e2544; }
|
150
|
+
|
151
|
+
#menu .menu-image ul li .text-area .more a { display: block; width: 100%; height: 100%; color: #0e2544; }
|
152
|
+
|
153
|
+
#menu .menu-image ul li .text-area .more a span { position: absolute; right: 15px; }
|
154
|
+
|
155
|
+
#menu .bx-controls-direction { position: relative; }
|
156
|
+
|
157
|
+
#menu .bx-controls-direction a { position: absolute; top: 47px; }
|
158
|
+
|
159
|
+
#menu .bx-controls-direction a.bx-prev { left: 200px; }
|
160
|
+
|
161
|
+
#menu .bx-controls-direction a.bx-next { right: 180px; }
|
162
|
+
|
163
|
+
#menu .bx-pager .bx-pager-item { width: 20px; height: 20px; margin: 10px 10px 0; }
|
164
|
+
|
165
|
+
#menu .bx-pager .bx-pager-item a { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid #0e2544; box-sizing: border-box; }
|
166
|
+
|
167
|
+
#menu .bx-pager .bx-pager-item a:hover { background: #04090f; opacity: 1; }
|
168
|
+
|
169
|
+
#menu .bx-pager .bx-pager-item a.active { background: #0e2544 !important; }
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
```
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
```javascript
|
94
180
|
|
95
181
|
$(function(){
|
96
182
|
|
@@ -98,7 +184,7 @@
|
|
98
184
|
|
99
185
|
$('.bxslider').bxSlider({
|
100
186
|
|
101
|
-
|
187
|
+
auto: true,
|
102
188
|
|
103
189
|
pause:4000,
|
104
190
|
|
@@ -112,6 +198,8 @@
|
|
112
198
|
|
113
199
|
|
114
200
|
|
201
|
+
```
|
202
|
+
|
115
203
|
|
116
204
|
|
117
205
|
###試したこと
|
4
タグの追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
3
html,js内容のcss内容削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
-
・html,
|
63
|
+
・html,js内容
|
64
64
|
|
65
65
|
■html
|
66
66
|
|
@@ -88,43 +88,7 @@
|
|
88
88
|
|
89
89
|
</div>
|
90
90
|
|
91
|
-
■css
|
92
91
|
|
93
|
-
#menu { width: 100%; min-width: 1020px; overflow: hidden; }
|
94
|
-
|
95
|
-
#menu .menu-image { position: relative; width: 700px; margin: 0 auto; }
|
96
|
-
|
97
|
-
#menu .menu-image ul { position: absolute; height: 250px; overflow: hidden; margin: 0 auto; }
|
98
|
-
|
99
|
-
#menu .menu-image ul li { width: 700px; height: 250px; background: #fff; margin: 0 auto; padding: 20px; border: 2px solid #0e2544; box-sizing: border-box; }
|
100
|
-
|
101
|
-
#menu .menu-image ul li .image-area { margin: 0 30px 0 0; }
|
102
|
-
|
103
|
-
#menu .menu-image ul li .text-area h3 { font-size: 20px; margin: 25px 0; }
|
104
|
-
|
105
|
-
#menu .menu-image ul li .text-area .text { font-size: 16px; line-height: 1.3; width: 320px; }
|
106
|
-
|
107
|
-
#menu .menu-image ul li .text-area .more { position: relative; text-align: center; width: 150px; height: 30px; margin: 40px auto; font-size: 14px; font-weight: bold; line-height: 30px; border: 2px solid #0e2544; }
|
108
|
-
|
109
|
-
#menu .menu-image ul li .text-area .more a { display: block; width: 100%; height: 100%; color: #0e2544; }
|
110
|
-
|
111
|
-
#menu .menu-image ul li .text-area .more a span { position: absolute; right: 15px; }
|
112
|
-
|
113
|
-
#menu .bx-controls-direction { position: relative; }
|
114
|
-
|
115
|
-
#menu .bx-controls-direction a { position: absolute; top: 47px; }
|
116
|
-
|
117
|
-
#menu .bx-controls-direction a.bx-prev { left: 200px; }
|
118
|
-
|
119
|
-
#menu .bx-controls-direction a.bx-next { right: 180px; }
|
120
|
-
|
121
|
-
#menu .bx-pager .bx-pager-item { width: 20px; height: 20px; margin: 10px 10px 0; }
|
122
|
-
|
123
|
-
#menu .bx-pager .bx-pager-item a { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid #0e2544; box-sizing: border-box; }
|
124
|
-
|
125
|
-
#menu .bx-pager .bx-pager-item a:hover { background: #04090f; opacity: 1; }
|
126
|
-
|
127
|
-
#menu .bx-pager .bx-pager-item a.active { background: #0e2544 !important; }
|
128
92
|
|
129
93
|
■js
|
130
94
|
|
@@ -134,7 +98,7 @@
|
|
134
98
|
|
135
99
|
$('.bxslider').bxSlider({
|
136
100
|
|
137
|
-
|
101
|
+
auto: true,
|
138
102
|
|
139
103
|
pause:4000,
|
140
104
|
|
2
html,css,js内容の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,6 +60,96 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
+
・html,css,js内容
|
64
|
+
|
65
|
+
■html
|
66
|
+
|
67
|
+
<div id="menu">
|
68
|
+
|
69
|
+
<div class="menu-image">
|
70
|
+
|
71
|
+
<ul class="bxslider">
|
72
|
+
|
73
|
+
<li></li>
|
74
|
+
|
75
|
+
<li></li>
|
76
|
+
|
77
|
+
<li></li>
|
78
|
+
|
79
|
+
<li></li>
|
80
|
+
|
81
|
+
<li></li>
|
82
|
+
|
83
|
+
<li></li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
■css
|
92
|
+
|
93
|
+
#menu { width: 100%; min-width: 1020px; overflow: hidden; }
|
94
|
+
|
95
|
+
#menu .menu-image { position: relative; width: 700px; margin: 0 auto; }
|
96
|
+
|
97
|
+
#menu .menu-image ul { position: absolute; height: 250px; overflow: hidden; margin: 0 auto; }
|
98
|
+
|
99
|
+
#menu .menu-image ul li { width: 700px; height: 250px; background: #fff; margin: 0 auto; padding: 20px; border: 2px solid #0e2544; box-sizing: border-box; }
|
100
|
+
|
101
|
+
#menu .menu-image ul li .image-area { margin: 0 30px 0 0; }
|
102
|
+
|
103
|
+
#menu .menu-image ul li .text-area h3 { font-size: 20px; margin: 25px 0; }
|
104
|
+
|
105
|
+
#menu .menu-image ul li .text-area .text { font-size: 16px; line-height: 1.3; width: 320px; }
|
106
|
+
|
107
|
+
#menu .menu-image ul li .text-area .more { position: relative; text-align: center; width: 150px; height: 30px; margin: 40px auto; font-size: 14px; font-weight: bold; line-height: 30px; border: 2px solid #0e2544; }
|
108
|
+
|
109
|
+
#menu .menu-image ul li .text-area .more a { display: block; width: 100%; height: 100%; color: #0e2544; }
|
110
|
+
|
111
|
+
#menu .menu-image ul li .text-area .more a span { position: absolute; right: 15px; }
|
112
|
+
|
113
|
+
#menu .bx-controls-direction { position: relative; }
|
114
|
+
|
115
|
+
#menu .bx-controls-direction a { position: absolute; top: 47px; }
|
116
|
+
|
117
|
+
#menu .bx-controls-direction a.bx-prev { left: 200px; }
|
118
|
+
|
119
|
+
#menu .bx-controls-direction a.bx-next { right: 180px; }
|
120
|
+
|
121
|
+
#menu .bx-pager .bx-pager-item { width: 20px; height: 20px; margin: 10px 10px 0; }
|
122
|
+
|
123
|
+
#menu .bx-pager .bx-pager-item a { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid #0e2544; box-sizing: border-box; }
|
124
|
+
|
125
|
+
#menu .bx-pager .bx-pager-item a:hover { background: #04090f; opacity: 1; }
|
126
|
+
|
127
|
+
#menu .bx-pager .bx-pager-item a.active { background: #0e2544 !important; }
|
128
|
+
|
129
|
+
■js
|
130
|
+
|
131
|
+
$(function(){
|
132
|
+
|
133
|
+
//メニューのスライド
|
134
|
+
|
135
|
+
$('.bxslider').bxSlider({
|
136
|
+
|
137
|
+
auto: true,
|
138
|
+
|
139
|
+
pause:4000,
|
140
|
+
|
141
|
+
autoHover: true,
|
142
|
+
|
143
|
+
slideMargin: 50
|
144
|
+
|
145
|
+
});
|
146
|
+
|
147
|
+
});
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
63
153
|
###試したこと
|
64
154
|
|
65
155
|
bxslider.jsの再インストール
|
1
ファイルの中身の階層・使用したファイルの説明
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
jQueryプラグインでのbxslider
|
1
|
+
jQueryプラグインでのbxsliderで次へ、前へボタンでの移動が上手くいきません。
|
test
CHANGED
@@ -24,9 +24,39 @@
|
|
24
24
|
|
25
25
|
###該当のソースコード
|
26
26
|
|
27
|
-
bxslider実装テストソースコード(Gigafile)
|
27
|
+
・bxslider実装テストソースコード(Gigafile)
|
28
28
|
|
29
29
|
http://19.gigafile.nu/0312-c8d0bee82c454f9f7e2bf5a0da992f0e6
|
30
|
+
|
31
|
+
・ファイル階層
|
32
|
+
|
33
|
+
css/
|
34
|
+
|
35
|
+
bxslider.css・・・bxsliderのcss
|
36
|
+
|
37
|
+
test.css・・・元ページのcss
|
38
|
+
|
39
|
+
images/
|
40
|
+
|
41
|
+
index/
|
42
|
+
|
43
|
+
next-arrow.png・・・次へボタン(画像)
|
44
|
+
|
45
|
+
prev-arrow.png・・・前へボタン(画像)
|
46
|
+
|
47
|
+
js/
|
48
|
+
|
49
|
+
index.js・・・bxsliderの編集ファイル
|
50
|
+
|
51
|
+
plugin/
|
52
|
+
|
53
|
+
bxslider.js・・・bxsliderの元ファイル
|
54
|
+
|
55
|
+
scss/
|
56
|
+
|
57
|
+
test.scss・・・元ページのscss
|
58
|
+
|
59
|
+
test.html・・・実装html
|
30
60
|
|
31
61
|
|
32
62
|
|