请给出上面网页设计需要的可以执行的源代码
时间: 2024-04-17 20:26:09 浏览: 12
以下是一个简单的示例源代码,用于实现你描述的登录界面需求:
```html
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<style>
/* 设置网页外框大小 */
body {
width: 400px;
margin: 0 auto;
padding: 20px;
}
/* 设置网站LOGO */
.logo {
text-align: center;
margin-bottom: 20px;
}
/* 设置成绩查询文字 */
.query-text {
text-align: center;
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
}
/* 设置仅限2022年查询文字 */
.year-text {
text-align: center;
margin-bottom: 20px;
}
/* 设置表单样式 */
form {
text-align: center;
margin-bottom: 20px;
}
/* 设置按钮样式 */
.btn {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
/* 设置查询按钮样式 */
.btn-query {
margin-right: 10px;
}
</style>
</head>
<body>
<div class="logo">
<img src="logo.png" alt="Logo" width="100">
</div>
<div class="query-text">成绩查询</div>
<div class="year-text">仅限2022年查询</div>
<form>
<label for="exam-id">准考证号:</label>
<input type="text" id="exam-id" name="exam-id"><br><br>
<label for="name">姓名:</label>
<input type="text" id="name" name="name"><br><br>
<label for="captcha">验证码:</label>
<input type="text" id="captcha" name="captcha"><br><br>
<button class="btn btn-query">查询</button>
<button class="btn">重置</button>
</form>
<a href="#">返回</a>
</body>
</html>
```
请注意,这只是一个基本示例,你可以根据自己的需求进行修改和扩展。另外,你需要将logo.png文件放在同一目录下,并将该源代码保存为index.html文件。