回答編集履歴
2
質問の変更に伴い追記
test
CHANGED
@@ -23,3 +23,63 @@
|
|
23
23
|
}
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
# 質問の変更に伴い追記
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```css
|
34
|
+
|
35
|
+
section {
|
36
|
+
|
37
|
+
position: relative;
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
input {
|
44
|
+
|
45
|
+
position: absolute;
|
46
|
+
|
47
|
+
top: calc( 14px + 0.5em );
|
48
|
+
|
49
|
+
margin: 0 1em;
|
50
|
+
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
label{
|
56
|
+
|
57
|
+
text-indent: 1em;
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
```html
|
66
|
+
|
67
|
+
<section>
|
68
|
+
|
69
|
+
<label for="label1">クリックして表示1</label>
|
70
|
+
|
71
|
+
<input type="checkbox" id="label1" class="cssacc" />
|
72
|
+
|
73
|
+
<div class="accshow">
|
74
|
+
|
75
|
+
<p>
|
76
|
+
|
77
|
+
こんにちは1
|
78
|
+
|
79
|
+
</p>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
</section>
|
84
|
+
|
85
|
+
```
|
1
訂正
test
CHANGED
@@ -16,4 +16,10 @@
|
|
16
16
|
|
17
17
|
}
|
18
18
|
|
19
|
+
.cssacc{
|
20
|
+
|
21
|
+
float:left;
|
22
|
+
|
23
|
+
}
|
24
|
+
|
19
25
|
```
|