回答編集履歴
1
修正
answer
CHANGED
@@ -6,7 +6,34 @@
|
|
6
6
|
スマホ用のサイトとのことなので恐らく、レスポンシブ対応させたいのだろうと予測。
|
7
7
|
そこはメディアクエリで細かく調整する
|
8
8
|
|
9
|
+
```html
|
10
|
+
<div class="question__ttl">明日の天気は晴れか?</div>
|
11
|
+
<div class="question__answer">
|
12
|
+
<p class="question__txt">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum
|
13
|
+
has been
|
14
|
+
the
|
15
|
+
industry's standard dummy text ever since the 1500s, when an<br> unknown printer took a galley of type and
|
16
|
+
scrambled
|
17
|
+
it to make a type specimen book. </p>
|
18
|
+
</div>
|
19
|
+
<div class="question__ttl">明日は木曜日か?</div>
|
20
|
+
<div class="question__answer">
|
21
|
+
<p class="question__txt">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum
|
22
|
+
has been
|
23
|
+
the
|
24
|
+
industry's standard dummy text ever since the 1500s, when an<br> unknown printer took a galley of type and
|
25
|
+
scrambled
|
26
|
+
it to make a type specimen book. </p>
|
27
|
+
</div>
|
28
|
+
```
|
9
29
|
```css
|
30
|
+
.question__ttl {
|
31
|
+
display: inline-block;
|
32
|
+
background-color: yellow;
|
33
|
+
margin-bottom: 30px;
|
34
|
+
cursor: pointer;
|
35
|
+
}
|
36
|
+
|
10
37
|
.question__answer {
|
11
38
|
height: 0;
|
12
39
|
padding: 0;
|
@@ -15,31 +42,15 @@
|
|
15
42
|
transition: 0.5s;
|
16
43
|
visibility: hidden;
|
17
44
|
white-space: nowrap;
|
18
|
-
padding: 10px 20px 20px;
|
19
45
|
}
|
20
46
|
|
21
47
|
.question__answer.is-open {
|
22
48
|
height: 154px;
|
23
|
-
padding: 10px 20px 20px;
|
24
49
|
opacity: 1;
|
25
50
|
visibility: visible;
|
26
51
|
}
|
27
|
-
|
52
|
+
|
28
|
-
```html
|
29
|
-
<div class="question__ttl">明日の天気は晴れか?</div>
|
30
|
-
<div class="question__answer">
|
31
|
-
<p class="question__txt">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum
|
32
|
-
|
53
|
+
.question__txt {
|
33
|
-
industry's standard dummy text ever since the 1500s, when an<br> unknown printer took a galley of type and
|
34
|
-
scrambled
|
35
|
-
it to make a type specimen book. </p>
|
36
|
-
|
54
|
+
padding: 10px 20px 20px;
|
37
|
-
<div class="question__ttl">明日は木曜日か?</div>
|
38
|
-
<div class="question__answer">
|
39
|
-
<p class="question__txt">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum
|
40
|
-
has been the
|
41
|
-
industry's standard dummy text ever since the 1500s, when an<br> unknown printer took a galley of type and
|
42
|
-
|
55
|
+
}
|
43
|
-
it to make a type specimen book. </p>
|
44
|
-
</div>
|
45
56
|
```
|