帮我写一个网站招生网站html简单一点加一点css
<!DOCTYPE html>
<html>
<head>
<title>招生网站</title>
<style>
body {
background-color: #f5f5f5;
font-family: Arial, sans-serif;
}
h1 {
color: #333;
text-align: center;
margin-top: 50px;
}
form {
background-color: #fff;
border-radius: 5px;
box-shadow: 0px 0px 10px #888;
max-width: 500px;
margin: 0 auto;
padding: 20px;
margin-top: 50px;
}
label {
display: block;
font-weight: bold;
margin-bottom: 10px;
}
input[type="text"], input[type="email"], select {
display: block;
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 3px;
margin-bottom: 20px;
font-size: 16px;
}
input[type="submit"] {
background-color: #333;
color: #fff;
border: none;
padding: 10px;
border-radius: 3px;
font-size: 16px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #555;
}
</style>
</head>
<body>
<h1>欢迎来到我们的招生网站</h1>
<form action="" method="post">
<label for="name">姓名:</label>
<input type="text" id="name" name="name" required>
<pre><code> <label for="email">邮箱:</label>
<input type="email" id="email" name="email" required>
<label for="gender">性别:</label>
<select id="gender" name="gender">
<option value="male">男</option>
<option value="female">女</option>
</select>
<label for="major">意向专业:</label>
<input type="text" id="major" name="major" required>
<input type="submit" value="提交申请">
</form>
</code></pre>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/ehYS 著作权归作者所有。请勿转载和采集!