回答編集履歴
3
調整
test
CHANGED
@@ -130,7 +130,7 @@
|
|
130
130
|
|
131
131
|
$('.contWrap').hide();
|
132
132
|
|
133
|
-
$($(this).attr('href')).next('.contWrap').show()
|
133
|
+
$($(this).attr('href')).next('.contWrap').show();
|
134
134
|
|
135
135
|
});
|
136
136
|
|
2
修正
test
CHANGED
@@ -120,8 +120,6 @@
|
|
120
120
|
|
121
121
|
IE8以上ならこれで行けそうです
|
122
122
|
|
123
|
-
わずかな時間差処理でやっているので姑息ですが、他のブラウザでも動きます
|
124
|
-
|
125
123
|
```javascript
|
126
124
|
|
127
125
|
$(function(){
|
@@ -132,10 +130,12 @@
|
|
132
130
|
|
133
131
|
$('.contWrap').hide();
|
134
132
|
|
135
|
-
|
133
|
+
$($(this).attr('href')).next('.contWrap').show().dequeue();
|
136
134
|
|
137
135
|
});
|
138
136
|
|
139
137
|
});
|
140
138
|
|
141
139
|
```
|
140
|
+
|
141
|
+
※普通にやればよかった・・・これでいけるはず
|
1
IE
test
CHANGED
@@ -113,3 +113,29 @@
|
|
113
113
|
</section>
|
114
114
|
|
115
115
|
```
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
# IE対応
|
120
|
+
|
121
|
+
IE8以上ならこれで行けそうです
|
122
|
+
|
123
|
+
わずかな時間差処理でやっているので姑息ですが、他のブラウザでも動きます
|
124
|
+
|
125
|
+
```javascript
|
126
|
+
|
127
|
+
$(function(){
|
128
|
+
|
129
|
+
$('.contWrap').hide();
|
130
|
+
|
131
|
+
$('a[href^="#"').on('click',function(){
|
132
|
+
|
133
|
+
$('.contWrap').hide();
|
134
|
+
|
135
|
+
setTimeout(function(){$(location.hash).next('.contWrap').show()},10);
|
136
|
+
|
137
|
+
});
|
138
|
+
|
139
|
+
});
|
140
|
+
|
141
|
+
```
|