質問編集履歴
2
ソース変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,11 +34,11 @@
|
|
34
34
|
|
35
35
|
<style>
|
36
36
|
|
37
|
-
.table { display:table; width:
|
37
|
+
.table { display:table; width:600px; height:200px; background:#bbb; text-align:center; }
|
38
38
|
|
39
39
|
.table ul { display:table-cell; vertical-align:middle; }
|
40
40
|
|
41
|
-
.table li { display:inline-block; padding:
|
41
|
+
.table li { display:inline-block; padding:20px; background:#fff; }
|
42
42
|
|
43
43
|
</style>
|
44
44
|
|
1
ソースの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,6 +16,74 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
```HTML
|
20
|
+
|
21
|
+
<!DOCTYPE html>
|
22
|
+
|
23
|
+
<html lang="ja">
|
24
|
+
|
25
|
+
<head>
|
26
|
+
|
27
|
+
<meta charset="Shift_JIS">
|
28
|
+
|
29
|
+
<meta name="robots" content="noindex">
|
30
|
+
|
31
|
+
<title>サンプル</title>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<style>
|
36
|
+
|
37
|
+
.table { display:table; width:960px; height:300px; background:#bbb;text-align:center; }
|
38
|
+
|
39
|
+
.table ul { display:table-cell; vertical-align:middle; }
|
40
|
+
|
41
|
+
.table li { display:inline-block; padding:10px; border:2px #fff solid; }
|
42
|
+
|
43
|
+
</style>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
</head>
|
48
|
+
|
49
|
+
<body>
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
<div class="table">
|
58
|
+
|
59
|
+
<ul>
|
60
|
+
|
61
|
+
<li>ほげほげほげ</li>
|
62
|
+
|
63
|
+
<li>ほげほげほげ<br>ほげほげほげ</li>
|
64
|
+
|
65
|
+
<li>ほげほげほげ<br>ほげほげほげ<br>ほげほげほげ</li>
|
66
|
+
|
67
|
+
</ul>
|
68
|
+
|
69
|
+
</div>
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</body>
|
78
|
+
|
79
|
+
</html>
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
19
87
|
恐れ入りますが、
|
20
88
|
|
21
89
|
ご教示の程よろしくお願いいたします。
|