質問編集履歴
3
cssのソースコードが解決後のものだったので、解決前のものに修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
background-color: pink;
|
37
37
|
}
|
38
38
|
|
39
|
-
@media screen and
|
39
|
+
@media screen and(min-width: 500px) {
|
40
40
|
#div1{
|
41
41
|
background-color: blue;
|
42
42
|
}
|
2
ソースコードを画像からコピペしたものにしました。
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
|
-
|
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
|
-
|
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
|

|
15
46
|
|
16
47
|
### 試したこと
|
1
該当のソースコード:CSSコードの画像が間違っていたので修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
12
|
](828ae153ebac209a5e2948adf0e109a8.png)
|
13
|
-

|
14
14
|

|
15
15
|
|
16
16
|
### 試したこと
|