You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.9 KiB
69 lines
1.9 KiB
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>课堂点名系统</title>
|
|
<style>
|
|
.move-button {
|
|
margin-top: 300px; /* 向下移动 30 像素 */
|
|
margin-left: 200px; /* 向右移动 20 像素 */
|
|
}
|
|
body {
|
|
font-family: 'Arial', sans-serif;
|
|
background-color: #f4f4f4;
|
|
margin: 0;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
}
|
|
input[type="file"] {
|
|
margin-bottom: 10px;
|
|
padding: 10px;
|
|
border: 2px solid #007BFF;
|
|
border-radius: 5px;
|
|
width: 250px;
|
|
}
|
|
button {
|
|
background-color: #007BFF;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
margin: 5px;
|
|
transition: background-color 0.3s;
|
|
margin-top: 20px; /* 向下移动 20 像素 */
|
|
margin-left: 10px; /* 向右移动 10 像素 */
|
|
}
|
|
button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
#result {
|
|
margin-top: 100px;
|
|
padding: 10px;
|
|
background: white;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
width: 500px;
|
|
text-align: center;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>课堂点名系统</h1>
|
|
|
|
<button onclick="uploadFile()">上传学生名单</button>
|
|
<button onclick="getRandomStudent()">随机点名</button>
|
|
<div id="result"></div>
|
|
<input type="file" id="fileInput" accept=".xlsx" />
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|