質問編集履歴

1

cssを追記しました

2023/03/18 09:25

投稿

cervoman
cervoman

スコア2

test CHANGED
File without changes
test CHANGED
@@ -49,3 +49,47 @@
49
49
  }
50
50
  });
51
51
  ```
52
+
53
+ ## 追記
54
+ htmlとcssを載せるのを忘れていました。
55
+ ```html
56
+ <!DOCTYPE html>
57
+ <html>
58
+ <head>
59
+ <meta charset="utf-8" />
60
+ <link rel="stylesheet" href="style.css" />
61
+ </head>
62
+ <body>
63
+ <div id="container">
64
+ <table id="board"></table>
65
+ </div>
66
+ <script src="main.js"></script>
67
+ </body>
68
+ </html>
69
+ ```
70
+ ```css
71
+ #container {
72
+ padding: 10px;
73
+ margin-right: auto;
74
+ margin-left: auto;
75
+ }
76
+
77
+ table {
78
+ border-collapse: collapse;
79
+ border-spacing: 0;
80
+ border: 1px solid #999;
81
+ text-align: center;
82
+ background-color: green;
83
+ max-width: 100%;
84
+ }
85
+
86
+ td {
87
+ width: 50px;
88
+ height: 50px;
89
+ color: #fff;
90
+ font-size: 25px;
91
+ font-weight: bold;
92
+ border: 1px solid #fff;
93
+ user-select: none;
94
+ }
95
+ ```