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

質問編集履歴

2

個人情報の削除

2021/10/16 05:24

投稿

music
music

スコア13

title CHANGED
File without changes
body CHANGED
@@ -27,6 +27,7 @@
27
27
  <img id="scroll-icon" src="../images/move-icon.png" alt="">
28
28
  </a>
29
29
  </body>
30
+
30
31
  ```
31
32
 
32
33
  ```JavaScript

1

html追加

2021/10/16 05:23

投稿

music
music

スコア13

title CHANGED
File without changes
body CHANGED
@@ -11,6 +11,23 @@
11
11
  ```
12
12
 
13
13
  ### 該当のソースコード
14
+ ```html
15
+ <!DOCTYPE html>
16
+ <html lang="jp">
17
+ <head>
18
+ <meta charset="UTF-8">
19
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
20
+ <link rel="stylesheet" href="../css/index.css">
21
+ <script src="../move/index.js"></script>
22
+ <title></title>
23
+ </head>
24
+ <body id="body">
25
+ <div></div>
26
+ <a href="#body">
27
+ <img id="scroll-icon" src="../images/move-icon.png" alt="">
28
+ </a>
29
+ </body>
30
+ ```
14
31
 
15
32
  ```JavaScript
16
33
  document.querySelectorAll('a[href^="#"]').forEach(link => {