質問編集履歴
1
ご指摘ありがとうございます。修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,212 @@
|
|
1
|
+
``` <div>
|
2
|
+
|
3
|
+
<div class="box">
|
4
|
+
|
5
|
+
<div class="a8"></div>
|
6
|
+
|
7
|
+
<div class="a5"></div>
|
8
|
+
|
9
|
+
<div class="a1"></div>
|
10
|
+
|
11
|
+
<div class="a7"></div>
|
12
|
+
|
13
|
+
<div class="a4"></div>
|
14
|
+
|
15
|
+
<div class="a6"></div>
|
16
|
+
|
17
|
+
<div class="a2"></div>
|
18
|
+
|
19
|
+
<div class="a3"></div>
|
20
|
+
|
21
|
+
<div class="a9"></div>
|
22
|
+
|
23
|
+
</div>
|
24
|
+
|
25
|
+
</div>
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
.box {
|
34
|
+
|
1
|
-
|
35
|
+
margin: auto;
|
36
|
+
|
37
|
+
height: 500px;
|
38
|
+
|
39
|
+
width: 500px;
|
40
|
+
|
41
|
+
position: relative;
|
42
|
+
|
43
|
+
background-color: #ECF1F2;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
.a8 {
|
48
|
+
|
49
|
+
z-index: 8;
|
50
|
+
|
51
|
+
top: 120px;
|
52
|
+
|
53
|
+
left: 120px;
|
54
|
+
|
55
|
+
height: 100px;
|
56
|
+
|
57
|
+
width: 100px;
|
58
|
+
|
59
|
+
background-color: #de70cf;
|
60
|
+
|
61
|
+
position: absolute;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
.a5 {
|
66
|
+
|
67
|
+
position: absolute;
|
68
|
+
|
69
|
+
z-index: 5;
|
70
|
+
|
71
|
+
top: 360px;
|
72
|
+
|
73
|
+
left: 200px;
|
74
|
+
|
75
|
+
height: 100px;
|
76
|
+
|
77
|
+
width: 100px;
|
78
|
+
|
79
|
+
background-color: #9fd6d2;
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
.a1 {
|
84
|
+
|
85
|
+
position: absolute;
|
86
|
+
|
87
|
+
z-index: 1;
|
88
|
+
|
89
|
+
top: 40px;
|
90
|
+
|
91
|
+
left: 200px;
|
92
|
+
|
93
|
+
height: 100px;
|
94
|
+
|
95
|
+
width: 100px;
|
96
|
+
|
97
|
+
background-color: #ffefd3;
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
.a7{
|
102
|
+
|
103
|
+
position: absolute;
|
104
|
+
|
105
|
+
z-index: 7;
|
106
|
+
|
107
|
+
top: 200px;
|
108
|
+
|
109
|
+
left: 40px;
|
110
|
+
|
111
|
+
height: 100px;
|
112
|
+
|
113
|
+
width: 100px;
|
114
|
+
|
115
|
+
background-color: #deae70;
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
.a4 {
|
120
|
+
|
121
|
+
position: absolute;
|
122
|
+
|
123
|
+
z-index: 4;
|
124
|
+
|
125
|
+
top: 280px;
|
126
|
+
|
127
|
+
left: 280px;
|
128
|
+
|
129
|
+
height: 100px;
|
130
|
+
|
131
|
+
width: 100px;
|
132
|
+
|
133
|
+
background-color: #8d7a5e;
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
.a6 {
|
138
|
+
|
139
|
+
position: absolute;
|
140
|
+
|
141
|
+
z-index: 6;
|
142
|
+
|
143
|
+
top: 280px;
|
144
|
+
|
145
|
+
left: 120px;
|
146
|
+
|
147
|
+
height: 100px;
|
148
|
+
|
149
|
+
width: 100px;
|
150
|
+
|
151
|
+
background-color: #fffee4;
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
.a2 {
|
156
|
+
|
157
|
+
position: absolute;
|
158
|
+
|
159
|
+
z-index: 2;
|
160
|
+
|
161
|
+
top: 120px;
|
162
|
+
|
163
|
+
left: 280px;
|
164
|
+
|
165
|
+
height: 100px;
|
166
|
+
|
167
|
+
width: 100px;
|
168
|
+
|
169
|
+
background-color: #7084de;
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
.a3 {
|
174
|
+
|
175
|
+
position: absolute;
|
176
|
+
|
177
|
+
z-index: 3;
|
178
|
+
|
179
|
+
top: 200px;
|
180
|
+
|
181
|
+
left: 360px;
|
182
|
+
|
183
|
+
height: 100px;
|
184
|
+
|
185
|
+
width: 100px;
|
186
|
+
|
187
|
+
background-color: #d0ecea;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
.a9 {
|
192
|
+
|
193
|
+
position: fixed;
|
194
|
+
|
195
|
+
top: 10px;
|
196
|
+
|
197
|
+
left: 10px;
|
198
|
+
|
199
|
+
height: 100px;
|
200
|
+
|
201
|
+
width: 100px;
|
202
|
+
|
203
|
+
background-color: #2d69a3;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
```
|
2
210
|
|
3
211
|
ここに質問したいことを詳細に書いてください
|
4
212
|
|
@@ -7,209 +215,3 @@
|
|
7
215
|
z-index: 1;の下にz-index: 8;を最後に重ねたいと思ってます。
|
8
216
|
|
9
217
|
:beforまたは:afterを使うとできると聞いたのですがサイトを見てもよくわからないので、簡単に教えて頂けないでしょうか?
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
###発生している問題・エラーメッセージ
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
```
|
18
|
-
|
19
|
-
エラーメッセージ
|
20
|
-
|
21
|
-
```
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
###該当のソースコード
|
26
|
-
|
27
|
-
@charset "UTF-8";
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
/* 回答はここに書いてね */
|
32
|
-
|
33
|
-
.box {
|
34
|
-
|
35
|
-
margin: auto;
|
36
|
-
|
37
|
-
height: 500px;
|
38
|
-
|
39
|
-
width: 500px;
|
40
|
-
|
41
|
-
position: relative;
|
42
|
-
|
43
|
-
background-color: #ECF1F2;
|
44
|
-
|
45
|
-
}
|
46
|
-
|
47
|
-
.a8 {
|
48
|
-
|
49
|
-
z-index: 8;
|
50
|
-
|
51
|
-
top: 120px;
|
52
|
-
|
53
|
-
left: 120px;
|
54
|
-
|
55
|
-
height: 100px;
|
56
|
-
|
57
|
-
width: 100px;
|
58
|
-
|
59
|
-
background-color: #de70cf;
|
60
|
-
|
61
|
-
position: absolute;
|
62
|
-
|
63
|
-
}
|
64
|
-
|
65
|
-
.a5 {
|
66
|
-
|
67
|
-
position: absolute;
|
68
|
-
|
69
|
-
z-index: 5;
|
70
|
-
|
71
|
-
top: 360px;
|
72
|
-
|
73
|
-
left: 200px;
|
74
|
-
|
75
|
-
height: 100px;
|
76
|
-
|
77
|
-
width: 100px;
|
78
|
-
|
79
|
-
background-color: #9fd6d2;
|
80
|
-
|
81
|
-
}
|
82
|
-
|
83
|
-
.a1 {
|
84
|
-
|
85
|
-
position: absolute;
|
86
|
-
|
87
|
-
z-index: 1;
|
88
|
-
|
89
|
-
top: 40px;
|
90
|
-
|
91
|
-
left: 200px;
|
92
|
-
|
93
|
-
height: 100px;
|
94
|
-
|
95
|
-
width: 100px;
|
96
|
-
|
97
|
-
background-color: #ffefd3;
|
98
|
-
|
99
|
-
}
|
100
|
-
|
101
|
-
.a7{
|
102
|
-
|
103
|
-
position: absolute;
|
104
|
-
|
105
|
-
z-index: 7;
|
106
|
-
|
107
|
-
top: 200px;
|
108
|
-
|
109
|
-
left: 40px;
|
110
|
-
|
111
|
-
height: 100px;
|
112
|
-
|
113
|
-
width: 100px;
|
114
|
-
|
115
|
-
background-color: #deae70;
|
116
|
-
|
117
|
-
}
|
118
|
-
|
119
|
-
.a4 {
|
120
|
-
|
121
|
-
position: absolute;
|
122
|
-
|
123
|
-
z-index: 4;
|
124
|
-
|
125
|
-
top: 280px;
|
126
|
-
|
127
|
-
left: 280px;
|
128
|
-
|
129
|
-
height: 100px;
|
130
|
-
|
131
|
-
width: 100px;
|
132
|
-
|
133
|
-
background-color: #8d7a5e;
|
134
|
-
|
135
|
-
}
|
136
|
-
|
137
|
-
.a6 {
|
138
|
-
|
139
|
-
position: absolute;
|
140
|
-
|
141
|
-
z-index: 6;
|
142
|
-
|
143
|
-
top: 280px;
|
144
|
-
|
145
|
-
left: 120px;
|
146
|
-
|
147
|
-
height: 100px;
|
148
|
-
|
149
|
-
width: 100px;
|
150
|
-
|
151
|
-
background-color: #fffee4;
|
152
|
-
|
153
|
-
}
|
154
|
-
|
155
|
-
.a2 {
|
156
|
-
|
157
|
-
position: absolute;
|
158
|
-
|
159
|
-
z-index: 2;
|
160
|
-
|
161
|
-
top: 120px;
|
162
|
-
|
163
|
-
left: 280px;
|
164
|
-
|
165
|
-
height: 100px;
|
166
|
-
|
167
|
-
width: 100px;
|
168
|
-
|
169
|
-
background-color: #7084de;
|
170
|
-
|
171
|
-
}
|
172
|
-
|
173
|
-
.a3 {
|
174
|
-
|
175
|
-
position: absolute;
|
176
|
-
|
177
|
-
z-index: 3;
|
178
|
-
|
179
|
-
top: 200px;
|
180
|
-
|
181
|
-
left: 360px;
|
182
|
-
|
183
|
-
height: 100px;
|
184
|
-
|
185
|
-
width: 100px;
|
186
|
-
|
187
|
-
background-color: #d0ecea;
|
188
|
-
|
189
|
-
}
|
190
|
-
|
191
|
-
.a9 {
|
192
|
-
|
193
|
-
position: fixed;
|
194
|
-
|
195
|
-
top: 10px;
|
196
|
-
|
197
|
-
left: 10px;
|
198
|
-
|
199
|
-
height: 100px;
|
200
|
-
|
201
|
-
width: 100px;
|
202
|
-
|
203
|
-
background-color: #2d69a3;
|
204
|
-
|
205
|
-
}
|
206
|
-
|
207
|
-
###試したこと
|
208
|
-
|
209
|
-
課題に対してアプローチしたことを記載してください
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
###補足情報(言語/FW/ツール等のバージョンなど)
|
214
|
-
|
215
|
-
より詳細な情報
|