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

質問編集履歴

3

cssのソースコードが解決後のものだったので、解決前のものに修正しました。

2021/04/04 06:57

投稿

555FB
555FB

スコア0

title CHANGED
File without changes
body CHANGED
@@ -36,7 +36,7 @@
36
36
  background-color: pink;
37
37
  }
38
38
 
39
- @media screen and (min-width: 500px) {
39
+ @media screen and(min-width: 500px) {
40
40
  #div1{
41
41
  background-color: blue;
42
42
  }

2

ソースコードを画像からコピペしたものにしました。

2021/04/04 06:57

投稿

555FB
555FB

スコア0

title CHANGED
File without changes
body CHANGED
@@ -9,8 +9,39 @@
9
9
 
10
10
 
11
11
  ### 該当のソースコード
12
+ ```<!doctype html>
13
+
14
+ <html lang="ja">
15
+ <head>
16
+ <meta charset="utf-8">
17
+ <meta name="viewport" content="width=device-width">
18
+ <title>テストページ</title>
19
+ <link rel="stylesheet" type="text/css" href="style.css">
20
+ </head>
21
+
22
+ <body>
23
+ <div id="div1">
24
+ <h1>タイトル</h1>
25
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
12
- ![HTMLコード](01b0552ce334da7e7c76fab34b71203a.png)](828ae153ebac209a5e2948adf0e109a8.png)
26
+         et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
27
+          aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
28
+          dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
13
- ![CSSコード](8f4f4920e79cb5f41831d79f2d1b3985.png)
29
+          deserunt mollit anim id est laborum.</p>
30
+ </div>
31
+ </body>
32
+ </html>
33
+ ```
34
+ ``` 
35
+ #div1 {
36
+ background-color: pink;
37
+ }
38
+
39
+ @media screen and (min-width: 500px) {
40
+ #div1{
41
+ background-color: blue;
42
+ }
43
+ }
44
+ ```
14
45
  ![デベロッパーツール](08452f6e912e91787571ee1ba0b95365.png)
15
46
 
16
47
  ### 試したこと

1

該当のソースコード:CSSコードの画像が間違っていたので修正しました。

2021/04/04 06:50

投稿

555FB
555FB

スコア0

title CHANGED
File without changes
body CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ### 該当のソースコード
12
12
  ![HTMLコード](01b0552ce334da7e7c76fab34b71203a.png)](828ae153ebac209a5e2948adf0e109a8.png)
13
- ![CSSコード](9d1bf5a9f1bf5f804a3e935bdd795b45.png)
13
+ ![CSSコード](8f4f4920e79cb5f41831d79f2d1b3985.png)
14
14
  ![デベロッパーツール](08452f6e912e91787571ee1ba0b95365.png)
15
15
 
16
16
  ### 試したこと