我需要一个更复杂更美丽的页面
时间: 2024-03-05 08:52:15 浏览: 10
好的,以下是一个稍微复杂一些的网上选课系统前端的示例代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>网上选课系统</title>
<style>
.container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
font-family: Arial, sans-serif;
}
h1 {
font-size: 36px;
margin-bottom: 20px;
text-align: center;
}
form {
background-color: #f2f2f2;
border-radius: 5px;
padding: 20px;
width: 400px;
}
label {
display: block;
margin-bottom: 10px;
font-size: 18px;
font-weight: bold;
}
input[type="text"],
input[type="number"] {
border: none;
border-radius: 5px;
padding: 10px;
margin-bottom: 20px;
width: 100%;
box-sizing: border-box;
font-size: 16px;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 18px;
margin-top: 20px;
transition: all 0.3s ease;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<div class="container">
<h1>欢迎来到网上选课系统</h1>
<form>
<label>课程名称:</label>
<input type="text" name="course_name">
<label>教师名称:</label>
<input type="text" name="teacher_name">
<label>学分:</label>
<input type="number" name="credit">
<label>课程时间:</label>
<input type="text" name="course_time">
<label>选课人数:</label>
<input type="number" name="num_of_students">
<input type="submit" value="提交">
</form>
</div>
</body>
</html>
```
这个示例代码使用了CSS样式来美化页面,使其更加现代化和美观。你可以根据自己的需求进行修改和添加。