質問編集履歴
1
表示崩れの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,17 +16,16 @@
|
|
16
16
|
```html
|
17
17
|
<div class="container-section product-image col-md-12 col-lg-7 col">
|
18
18
|
<div class="product-image-main" style="height: 440px;">
|
19
|
-
|
19
|
+
<img src="//img17.shop-pro.jp/PA01168/080/product/151826293_o3.jpg?cmsp_timestamp=20200619112104" class="mainImage" style="max-height: 440px; display: block;"></div>
|
20
|
-
</div>
|
21
20
|
<div class="product-image-thumb grid_row">
|
22
21
|
<ul>
|
23
|
-
|
22
|
+
<li class="col-lg-3 col" style="height: 101.219px;">
|
24
23
|
<img src="//img17.shop-pro.jp/PA01168/080/product/151826293.jpg?cmsp_timestamp=20200619112104" class="thumb" style="max-height: 101.219px;">
|
25
24
|
</li>
|
26
|
-
|
25
|
+
<li class="col-lg-3 col" style="height: 101.219px;">
|
27
26
|
<img src="//img17.shop-pro.jp/PA01168/080/product/151826293_o1.jpg?cmsp_timestamp=20200619112104" class="thumb" style="max-height: 101.219px;">
|
28
27
|
</li>
|
29
|
-
|
28
|
+
<li class="col-lg-3 col" style="height: 101.219px;">
|
30
29
|
<img src="//img17.shop-pro.jp/PA01168/080/product/151826293_o2.jpg?cmsp_timestamp=20200619112104" class="thumb" style="max-height: 101.219px;">
|
31
30
|
</li>
|
32
31
|
<li class="col-lg-3 col" style="height: 101.219px;">
|
@@ -35,15 +34,15 @@
|
|
35
34
|
<li class="col-lg-3 col" style="height: 101.219px;">
|
36
35
|
<img src="//img17.shop-pro.jp/PA01168/080/product/151826293_o4.jpg?cmsp_timestamp=20200619112104" class="thumb" style="max-height: 101.219px;">
|
37
36
|
</li>
|
38
|
-
|
37
|
+
<li class="col-lg-3 col" style="height: 101.219px;">
|
39
38
|
<img src="//img17.shop-pro.jp/PA01168/080/product/151826293_o5.jpg?cmsp_timestamp=20200619112104" class="thumb" style="max-height: 101.219px;">
|
40
39
|
</li>
|
41
40
|
<li class="col-lg-3 col" style="height: 101.219px;">
|
42
41
|
<img src="//img17.shop-pro.jp/PA01168/080/product/151826293_o6.jpg?cmsp_timestamp=20200619112104" class="thumb" style="max-height: 101.219px;">
|
43
42
|
</li>
|
44
|
-
|
43
|
+
</ul>
|
45
44
|
</div>
|
46
|
-
|
45
|
+
</div>
|
47
46
|
```
|
48
47
|
### 該当のソースコード
|
49
48
|
```css
|
@@ -55,9 +54,10 @@
|
|
55
54
|
}
|
56
55
|
.thumb-active {
|
57
56
|
border: 1px solid <{$current_color}>;
|
57
|
+
}
|
58
|
-
|
58
|
+
```
|
59
59
|
|
60
|
-
|
60
|
+
|
61
61
|
```javaScript
|
62
62
|
|
63
63
|
$('img.thumb').click(function(){
|
@@ -74,7 +74,26 @@
|
|
74
74
|
|
75
75
|
$(this).addClass('thumb-active');
|
76
76
|
|
77
|
-
});
|
77
|
+
});
|
78
|
+
});
|
79
|
+
```
|
80
|
+
```javaScript
|
81
|
+
|
82
|
+
$('img.thumb').click(function(){
|
83
|
+
|
84
|
+
$(this).parent().siblings().children().removeClass('thumb-active');
|
85
|
+
|
86
|
+
var selectedSrc = $(.thumb).attr('src');
|
87
|
+
$('img.mainImage').stop().fadeOut(300,
|
88
|
+
function(){
|
89
|
+
$('img.mainImage').attr('src', selectedSrc);
|
90
|
+
$('img.mainImage').fadeIn(300);
|
91
|
+
}
|
92
|
+
);
|
93
|
+
|
94
|
+
$(this).addClass('thumb-active');
|
95
|
+
|
96
|
+
});
|
78
97
|
$('img.mainImage').click(function(){
|
79
98
|
|
80
99
|
$(this).parent().siblings().children().removeClass('thumb-active');
|