teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

CSSの追加

2022/08/14 16:00

投稿

kou0401
kou0401

スコア1

title CHANGED
File without changes
body CHANGED
@@ -13,6 +13,20 @@
13
13
  <a href="" data-js="glitch-image"><img src="img/sample01.png" alt="sample01"></a>
14
14
  ```
15
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
+
29
+
16
30
  ```javascript
17
31
  (function (window) {
18
32
  'use strict';