回答編集履歴
2
書き換えの残りが有ったので修正しました。
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
.blue{
|
30
30
|
|
31
|
-
background:
|
31
|
+
background:rgb(0,0,255);
|
32
32
|
|
33
33
|
}
|
34
34
|
|
1
メモ書きをコメントに変更しました。
test
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
for(i=0;i<td.length;i++){
|
6
6
|
|
7
|
-
|
7
|
+
//IE以外
|
8
8
|
|
9
9
|
console.log(window.getComputedStyle(td[i]).backgroundColor);
|
10
10
|
|
11
|
-
|
11
|
+
//IEの場合
|
12
12
|
|
13
13
|
console.log(td[i].currentStyle.backgroundColor);
|
14
14
|
|