回答編集履歴
1
追記
test
CHANGED
@@ -1,65 +1,37 @@
|
|
1
|
+
※質問内容の変更により大幅訂正
|
2
|
+
|
3
|
+
|
4
|
+
|
1
|
-
|
5
|
+
間に挟むのはアウトですか?
|
6
|
+
|
7
|
+
```html
|
8
|
+
|
9
|
+
<div class="circle">
|
10
|
+
|
11
|
+
<div class="aida">
|
12
|
+
|
13
|
+
<div class="square"></div>
|
14
|
+
|
15
|
+
</div>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
|
19
|
+
```
|
20
|
+
|
21
|
+
|
2
22
|
|
3
23
|
```css
|
4
24
|
|
5
|
-
.
|
25
|
+
.aida{
|
6
26
|
|
7
|
-
|
27
|
+
position:relative;
|
8
28
|
|
9
|
-
height: 30px;
|
10
|
-
|
11
|
-
border-radius: 50%;
|
12
|
-
|
13
|
-
background: skyblue;
|
14
|
-
|
15
|
-
position: absolute;
|
16
|
-
|
17
|
-
/*z-index:1;*/
|
18
|
-
|
19
|
-
}
|
20
|
-
|
21
|
-
.circle:before {
|
22
|
-
|
23
|
-
content: "";
|
24
|
-
|
25
|
-
width: 100%;
|
26
|
-
|
27
|
-
height: 100%;
|
28
|
-
|
29
|
-
border-radius: 50%;
|
30
|
-
|
31
|
-
background: #000;
|
32
|
-
|
33
|
-
position: absolute;
|
34
|
-
|
35
|
-
top: 5px;
|
36
|
-
|
37
|
-
left: 5px;
|
38
|
-
|
39
|
-
z-index:
|
29
|
+
z-index:0;
|
40
|
-
|
41
|
-
}
|
42
|
-
|
43
|
-
.circle:after {
|
44
|
-
|
45
|
-
content: "";
|
46
|
-
|
47
|
-
width: 100%;
|
48
|
-
|
49
|
-
height: 100%;
|
50
|
-
|
51
|
-
border-radius: 50%;
|
52
|
-
|
53
|
-
background: #f00;
|
54
|
-
|
55
|
-
position: absolute;
|
56
|
-
|
57
|
-
top: 15px;
|
58
|
-
|
59
|
-
left: 15px;
|
60
|
-
|
61
|
-
z-index: -1;
|
62
30
|
|
63
31
|
}
|
64
32
|
|
65
33
|
```
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
[jsfiddle](https://jsfiddle.net/vgpwn3rh/)
|