質問編集履歴
2
opacityの記述が意味をなしていなかったので削除しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,6 @@
|
|
22
22
|
```javascript
|
23
23
|
document.querySelectorAll("*").forEach(element => {
|
24
24
|
|
25
|
-
element.style.setProperty("opacity", "1", "important");
|
26
25
|
element.style.setProperty("background-color", "rgba(127, 127, 127, 0.05)", "important");
|
27
26
|
element.style.setProperty("background", "rgba(127, 127, 127, 0.05)", "important");
|
28
27
|
|
1
必要なソースコードを追加。
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,9 +18,15 @@
|
|
18
18
|
```
|
19
19
|
|
20
20
|
### 該当のソースコード
|
21
|
+
すべての要素を(半)透明にするコードです。
|
22
|
+
```javascript
|
23
|
+
document.querySelectorAll("*").forEach(element => {
|
21
24
|
|
22
|
-
|
25
|
+
element.style.setProperty("opacity", "1", "important");
|
26
|
+
element.style.setProperty("background-color", "rgba(127, 127, 127, 0.05)", "important");
|
27
|
+
element.style.setProperty("background", "rgba(127, 127, 127, 0.05)", "important");
|
28
|
+
|
23
|
-
|
29
|
+
});
|
24
30
|
```
|
25
31
|
|
26
32
|
### 試したこと
|