質問編集履歴

1

CSSの追加

2022/08/14 16:00

投稿

kou0401
kou0401

score1

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,20 @@
12
12
  ```html
13
13
  <a href="" data-js="glitch-image"><img src="img/sample01.png" alt="sample01"></a>
14
14
  ```
15
+
16
+ ```css
17
+ [data-js="glitch-image"] {
18
+ position: relative;
19
+ width: 100%;
20
+ }
21
+ [data-js="glitch-image"] canvas {
22
+ position: absolute;
23
+ top: 0;
24
+ left: 0;
25
+ z-index: 1;
26
+ }
27
+ ```
28
+
15
29
 
16
30
  ```javascript
17
31
  (function (window) {