調整css
This commit is contained in:
parent
b1ecd238b2
commit
a8c1c401d4
@ -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
|
||||
}
|
||||
|
||||
@ -17,8 +17,9 @@
|
||||
<!--p>
|
||||
<a href="new.html">我要填表</a>
|
||||
</p-->
|
||||
<label for="queryDate">日期篩選:</label>
|
||||
<input type="date" id="queryDate">
|
||||
<button onclick="getDate()">選擇日期</button>
|
||||
<button onclick="getDate()">設定日期</button>
|
||||
<hr>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios@1.1.2/dist/axios.min.js"></script>
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user