From a8c1c401d4ddefcccac8b25a48967412f24e0334 Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Tue, 27 Jun 2023 16:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 14 +++++++++++--- index.html | 3 ++- js/index.js | 3 +++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index 95fc1e0..6ab4292 100644 --- a/css/style.css +++ b/css/style.css @@ -85,9 +85,17 @@ input[type="number"] { outline: #1aff00; } -button { - width: 40%; - height: 40px; +input[type="date"] { + width: 50%; + height: 30px; + font-size: medium; + font-weight: bold; + font-family: 'Arial', system-ui +} + +button { + width: 40%; + height: 30px; font-weight: bold; font-family: 'Arial', system-ui } diff --git a/index.html b/index.html index 2786819..02428ea 100644 --- a/index.html +++ b/index.html @@ -17,8 +17,9 @@ + - +
diff --git a/js/index.js b/js/index.js index 753bbfa..3a208b7 100644 --- a/js/index.js +++ b/js/index.js @@ -1,4 +1,7 @@ var selectedDate = document.getElementById("queryDate"); +var today = new Date(); +var formattedDate = today.toISOString().split('T')[0]; +selectedDate.value = formattedDate; let table = document.createElement("table"); let thead = document.createElement("thead");