質問編集履歴

1

全文に変更致しました。中のコンテンツ上部が数行見えるような感じです。 ddにこだわらなければ別タグでできますが・・・。

2018/09/13 09:14

投稿

guranola
guranola

スコア13

test CHANGED
File without changes
test CHANGED
@@ -24,6 +24,116 @@
24
24
 
25
25
  ```ここに言語名を入力
26
26
 
27
+ <!DOCTYPE html>
28
+
29
+ <html lang="ja">
30
+
31
+ <head>
32
+
33
+ <meta charset="utf-8">
34
+
35
+ <title>Accordion</title>
36
+
37
+ <style type="text/css">
38
+
39
+ <!--
40
+
41
+ *{
42
+
43
+ margin:0;
44
+
45
+ padding:0;
46
+
47
+ font-family:
48
+
49
+ "Hiragino Kaku Gothic Pro",
50
+
51
+ "ヒラギノ角ゴ Pro W3",
52
+
53
+ Meiryo,
54
+
55
+ "メイリオ",
56
+
57
+ Osaka,
58
+
59
+ "MS P Gothic",
60
+
61
+ "MS Pゴシック",
62
+
63
+ sans-serif;
64
+
65
+ }
66
+
67
+ dl{
68
+
69
+ width: 760px;
70
+
71
+ margin: 50px auto;
72
+
73
+ }
74
+
75
+ dt{
76
+
77
+ font-weight: bold;
78
+
79
+ border-bottom: 1px solid #FFFFFF;
80
+
81
+ cursor: pointer;
82
+
83
+ padding: 8px 8px 8px 12px;
84
+
85
+ color: #FFF;
86
+
87
+ background-color: #b2d2ea;
88
+
89
+ }
90
+
91
+ dd{
92
+
93
+ border: 1px solid #b2d2ea;
94
+
95
+ border-top: none;
96
+
97
+ height: 400px;
98
+
99
+ padding: 12px;
100
+
101
+ }
102
+
103
+
104
+
105
+ #detail{
106
+
107
+ float: left;
108
+
109
+ width: 730px;
110
+
111
+ height: 180px;
112
+
113
+ background-color: #ff7f50;
114
+
115
+ }
116
+
117
+ #introduction{
118
+
119
+ float: left;
120
+
121
+ width: 730px;
122
+
123
+ height: 180px;
124
+
125
+ margin-top: 30px;
126
+
127
+ background-color: #d3d3d3;
128
+
129
+ }
130
+
131
+ -->
132
+
133
+ </style>
134
+
135
+ <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
136
+
27
137
  <script type="text/javascript">
28
138
 
29
139
  $(function(){
@@ -46,6 +156,66 @@
46
156
 
47
157
  </script>
48
158
 
159
+ </head>
160
+
161
+ <body>
162
+
163
+ <div id="container">
164
+
165
+ <dl>
166
+
167
+ <dt>項目1</dt>
168
+
169
+ <dd>
170
+
171
+ <div id="detail">
172
+
173
+ <h2>タイトル</h2>
174
+
175
+ <p>テキストテキストテキストテキストテキストテキストテキストテキスト</p>
176
+
177
+ </div>
178
+
179
+ <div id="introduction">
180
+
181
+ <h2>タイトル</h2>
182
+
183
+ <p>テキストテキストテキストテキストテキストテキストテキストテキスト</p>
184
+
185
+ </div>
186
+
187
+ </dd>
188
+
189
+ <dt>項目2</dt>
190
+
191
+ <dd>
192
+
193
+ <div id="detail">
194
+
195
+ <h2>タイトル</h2>
196
+
197
+ <p>テキストテキストテキストテキストテキストテキストテキストテキスト</p>
198
+
199
+ </div>
200
+
201
+ <div id="introduction">
202
+
203
+ <h2>タイトル</h2>
204
+
205
+ <p>テキストテキストテキストテキストテキストテキストテキストテキスト</p>
206
+
207
+ </div>
208
+
209
+ </dd>
210
+
211
+ </dl>
212
+
213
+ </div>
214
+
215
+ </body>
216
+
217
+ </html>
218
+
49
219
  ```
50
220
 
51
221