-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (63 loc) · 1.33 KB
/
Copy pathindex.html
File metadata and controls
73 lines (63 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表格修改</title>
<style>
table {
width: 50%;
border-collapse: collapse;
/*消除格间缝隙*/
margin-top: 20px;
}
th,
td {
border: 1px solid #ddd;
text-align: center;
padding: 8px;
}
button {
margin-left: 5px;
}
#a-dj {
color: aquamarine;
font-size: 1.5rem;
}
#a-tz {
color: burlywood;
font-size: 1.2rem;
}
#a-zzy {
color: red;
font-size: 2rem;
}
</style>
<script src="./js/16.JS.js"></script>
</head>
<body>
<h1 style="text-align: center">表格修改</h1>
<button onclick="addRow()">增加数据</button>
<table id="table">
<tr>
<th>姓名</th>
<th>ID</th>
<th>操作</th>
</tr>
<tr>
<td>Kobe</td>
<td>24</td>
<td>
<button onclick="editRow(this)">编辑</button>
<button onclick="deleteRow(this)">删除</button>
</td>
</tr>
</table>
<br>
<a href="main-page.html">
<span id="a-dj">点击</span>
<span id="a-tz">跳至</span>
<span id="a-zzy">真主页!!!</span>
</a>
</body>
</html>