質問編集履歴
2
HTMLを追加いたしました。よろしくお願いいたします。
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,6 +13,104 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
▼実際に試したコード
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
```ここに言語を入力
|
20
|
+
|
21
|
+
<header class="header">
|
22
|
+
|
23
|
+
<h1 class="site-title"><img src="●●.png" alt="●●"></h1>
|
24
|
+
|
25
|
+
<!--navigation-->
|
26
|
+
|
27
|
+
<a href="#">●●</a>
|
28
|
+
|
29
|
+
<a href="#">●●</a>
|
30
|
+
|
31
|
+
<a href="#">●●</a>
|
32
|
+
|
33
|
+
<a href="#">●●</a>
|
34
|
+
|
35
|
+
<!--//navigation-->
|
36
|
+
|
37
|
+
<button type="button" class="btn-trigger">
|
38
|
+
|
39
|
+
<svg viewBox="0 0 44 44" xmlns:xlink="http://www.w3.org/1999/xlink" role="img" aria-labelledby="menuButtonTitle">
|
40
|
+
|
41
|
+
<title id="menuButtonTitle">Menu</title>
|
42
|
+
|
43
|
+
<symbol id="bar">
|
44
|
+
|
45
|
+
<rect width="28" height="3" fill="#848484"></rect>
|
46
|
+
|
47
|
+
</symbol>
|
48
|
+
|
49
|
+
<use xlink:href="#bar" x="8" y="14"></use>
|
50
|
+
|
51
|
+
<use xlink:href="#bar" x="8" y="24"></use>
|
52
|
+
|
53
|
+
<use xlink:href="#bar" x="8" y="34"></use>
|
54
|
+
|
55
|
+
</svg>
|
56
|
+
|
57
|
+
Menu
|
58
|
+
|
59
|
+
</button>
|
60
|
+
|
61
|
+
</header>
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<main>
|
66
|
+
|
67
|
+
<div class="画像①">
|
68
|
+
|
69
|
+
<h2 class="inner">文章</h2>
|
70
|
+
|
71
|
+
<h3 class="inner__b">文章</h3>
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<div class="画像②">
|
78
|
+
|
79
|
+
<p class="introduction">文章</p>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<div class="about">
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<h2>画像③</h2>
|
90
|
+
|
91
|
+
<h3>文章</h3>
|
92
|
+
|
93
|
+
<p>文章</p>
|
94
|
+
|
95
|
+
<h3>見出し</h3>
|
96
|
+
|
97
|
+
<p>文章</p>
|
98
|
+
|
99
|
+
<h3>見出し</h3>
|
100
|
+
|
101
|
+
<p>文章</p>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
```
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
16
114
|
|
17
115
|
```ここに言語を入力
|
18
116
|
|
@@ -82,6 +180,10 @@
|
|
82
180
|
|
83
181
|
```
|
84
182
|
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
85
187
|
▼上記コードを入れた結果
|
86
188
|
|
87
189
|
![イメージ説明](658632b352619aeb233a2f79020a486f.png)
|
1
実際に入れたコードと、結果になります。よろしくお願いします。
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,3 +9,79 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
どのようにしたら、添付画像のような背景にできますでしょうか。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
▼実際に試したコード
|
16
|
+
|
17
|
+
```ここに言語を入力
|
18
|
+
|
19
|
+
.画像①{
|
20
|
+
|
21
|
+
position: relative;
|
22
|
+
|
23
|
+
background-image: url();
|
24
|
+
|
25
|
+
too:52px;
|
26
|
+
|
27
|
+
left: 0;
|
28
|
+
|
29
|
+
height: 436px;
|
30
|
+
|
31
|
+
z-index: 10;
|
32
|
+
|
33
|
+
margin-top: 52px;
|
34
|
+
|
35
|
+
background-position: center bottom;
|
36
|
+
|
37
|
+
background-size:cover;
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
.画像②{
|
44
|
+
|
45
|
+
position: absolute;
|
46
|
+
|
47
|
+
background-image: url();
|
48
|
+
|
49
|
+
top:468px;
|
50
|
+
|
51
|
+
left: 0;
|
52
|
+
|
53
|
+
height: 269px;
|
54
|
+
|
55
|
+
z-index: 9;
|
56
|
+
|
57
|
+
background-position: center bottom;
|
58
|
+
|
59
|
+
background-size:cover;
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
.画像③{
|
64
|
+
|
65
|
+
position: absolute;
|
66
|
+
|
67
|
+
background-image: url();
|
68
|
+
|
69
|
+
top:468px;
|
70
|
+
|
71
|
+
left: 0;
|
72
|
+
|
73
|
+
height: 657px;
|
74
|
+
|
75
|
+
z-index: 8;
|
76
|
+
|
77
|
+
background-position: center bottom;
|
78
|
+
|
79
|
+
background-size:cover;
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
▼上記コードを入れた結果
|
86
|
+
|
87
|
+
![イメージ説明](658632b352619aeb233a2f79020a486f.png)
|