回答編集履歴
3
調整
answer
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
$('.contWrap').hide();
|
65
65
|
$('a[href^="#"').on('click',function(){
|
66
66
|
$('.contWrap').hide();
|
67
|
-
$($(this).attr('href')).next('.contWrap').show()
|
67
|
+
$($(this).attr('href')).next('.contWrap').show();
|
68
68
|
});
|
69
69
|
});
|
70
70
|
```
|
2
修正
answer
CHANGED
@@ -59,13 +59,13 @@
|
|
59
59
|
|
60
60
|
# IE対応
|
61
61
|
IE8以上ならこれで行けそうです
|
62
|
-
わずかな時間差処理でやっているので姑息ですが、他のブラウザでも動きます
|
63
62
|
```javascript
|
64
63
|
$(function(){
|
65
64
|
$('.contWrap').hide();
|
66
65
|
$('a[href^="#"').on('click',function(){
|
67
66
|
$('.contWrap').hide();
|
68
|
-
|
67
|
+
$($(this).attr('href')).next('.contWrap').show().dequeue();
|
69
68
|
});
|
70
69
|
});
|
71
|
-
```
|
70
|
+
```
|
71
|
+
※普通にやればよかった・・・これでいけるはず
|
1
IE
answer
CHANGED
@@ -55,4 +55,17 @@
|
|
55
55
|
<br><br><br><br><br><br>
|
56
56
|
</div>
|
57
57
|
</section>
|
58
|
+
```
|
59
|
+
|
60
|
+
# IE対応
|
61
|
+
IE8以上ならこれで行けそうです
|
62
|
+
わずかな時間差処理でやっているので姑息ですが、他のブラウザでも動きます
|
63
|
+
```javascript
|
64
|
+
$(function(){
|
65
|
+
$('.contWrap').hide();
|
66
|
+
$('a[href^="#"').on('click',function(){
|
67
|
+
$('.contWrap').hide();
|
68
|
+
setTimeout(function(){$(location.hash).next('.contWrap').show()},10);
|
69
|
+
});
|
70
|
+
});
|
58
71
|
```
|