質問編集履歴

2

参考コードを追加しました。

2017/11/28 08:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -25,3 +25,149 @@
25
25
 
26
26
 
27
27
  ブラウザはGoogle Chromeです。
28
+
29
+
30
+
31
+ ```
32
+
33
+ <!DOCTYPE html>
34
+
35
+ <html>
36
+
37
+
38
+
39
+ <head>
40
+
41
+ <title>台帳レイアウト 作成中</title>
42
+
43
+ <meta charset="UTF-8">
44
+
45
+
46
+
47
+ <style>
48
+
49
+ section {
50
+
51
+ padding-bottom: 20px;
52
+
53
+ }
54
+
55
+
56
+
57
+ .width-33 {
58
+
59
+ width: 33%;
60
+
61
+ }
62
+
63
+
64
+
65
+ .width-77 {
66
+
67
+ width: 67%;
68
+
69
+ }
70
+
71
+
72
+
73
+ table {
74
+
75
+ display: table;
76
+
77
+ border-collapse: collapse;
78
+
79
+ border-spacing: 0;
80
+
81
+ border-color: #A9A9A9;
82
+
83
+ margin-top: 0;
84
+
85
+ margin-bottom: 0;
86
+
87
+ width: 100%;
88
+
89
+ }
90
+
91
+
92
+
93
+ th {
94
+
95
+ border: 1px solid black;
96
+
97
+ }
98
+
99
+
100
+
101
+ .div-parent {
102
+
103
+ display: flex;
104
+
105
+ }
106
+
107
+
108
+
109
+ .div-parent>div:nth-of-type(1) {
110
+
111
+ border: 1px solid black;
112
+
113
+ border-right: none;
114
+
115
+ }
116
+
117
+
118
+
119
+ .div-parent>div:nth-of-type(2) {
120
+
121
+ border: 1px solid black;
122
+
123
+ }
124
+
125
+ </style>
126
+
127
+ </head>
128
+
129
+
130
+
131
+ <body>
132
+
133
+ <section>
134
+
135
+ <table>
136
+
137
+ <thead>
138
+
139
+ <tr>
140
+
141
+ <th class="width-33">1</th>
142
+
143
+ <th class="width-77">2</th>
144
+
145
+ </tr>
146
+
147
+ </thead>
148
+
149
+ </table>
150
+
151
+ </section>
152
+
153
+
154
+
155
+ <section>
156
+
157
+ <div class="div-parent">
158
+
159
+ <div class="width-33">1</div>
160
+
161
+ <div class="width-77">2</div>
162
+
163
+ </div>
164
+
165
+ </section>
166
+
167
+ </body>
168
+
169
+
170
+
171
+ </html>
172
+
173
+ ```

1

使用ブラウザを追記しました。

2017/11/28 08:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -21,3 +21,7 @@
21
21
 
22
22
 
23
23
  この差異をなくすためにはcssやHTMLでどのような記述の方法がありますでしょうか?
24
+
25
+
26
+
27
+ ブラウザはGoogle Chromeです。