質問するログイン新規登録

質問編集履歴

2

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

2017/11/28 08:41

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -11,4 +11,77 @@
11
11
 
12
12
  この差異をなくすためにはcssやHTMLでどのような記述の方法がありますでしょうか?
13
13
 
14
- ブラウザはGoogle Chromeです。
14
+ ブラウザはGoogle Chromeです。
15
+
16
+ ```
17
+ <!DOCTYPE html>
18
+ <html>
19
+
20
+ <head>
21
+ <title>台帳レイアウト 作成中</title>
22
+ <meta charset="UTF-8">
23
+
24
+ <style>
25
+ section {
26
+ padding-bottom: 20px;
27
+ }
28
+
29
+ .width-33 {
30
+ width: 33%;
31
+ }
32
+
33
+ .width-77 {
34
+ width: 67%;
35
+ }
36
+
37
+ table {
38
+ display: table;
39
+ border-collapse: collapse;
40
+ border-spacing: 0;
41
+ border-color: #A9A9A9;
42
+ margin-top: 0;
43
+ margin-bottom: 0;
44
+ width: 100%;
45
+ }
46
+
47
+ th {
48
+ border: 1px solid black;
49
+ }
50
+
51
+ .div-parent {
52
+ display: flex;
53
+ }
54
+
55
+ .div-parent>div:nth-of-type(1) {
56
+ border: 1px solid black;
57
+ border-right: none;
58
+ }
59
+
60
+ .div-parent>div:nth-of-type(2) {
61
+ border: 1px solid black;
62
+ }
63
+ </style>
64
+ </head>
65
+
66
+ <body>
67
+ <section>
68
+ <table>
69
+ <thead>
70
+ <tr>
71
+ <th class="width-33">1</th>
72
+ <th class="width-77">2</th>
73
+ </tr>
74
+ </thead>
75
+ </table>
76
+ </section>
77
+
78
+ <section>
79
+ <div class="div-parent">
80
+ <div class="width-33">1</div>
81
+ <div class="width-77">2</div>
82
+ </div>
83
+ </section>
84
+ </body>
85
+
86
+ </html>
87
+ ```

1

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

2017/11/28 08:41

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -9,4 +9,6 @@
9
9
  ・table要素のthやtd
10
10
  ⇒小数点が切り捨てられる
11
11
 
12
- この差異をなくすためにはcssやHTMLでどのような記述の方法がありますでしょうか?
12
+ この差異をなくすためにはcssやHTMLでどのような記述の方法がありますでしょうか?
13
+
14
+ ブラウザはGoogle Chromeです。