用html+css写一个用户反馈页面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户反馈页面</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
<pre><code> h1 {
text-align: center;
color: #333333;
}
form {
width: 500px;
margin: 0 auto;
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px #999999;
}
label {
display: block;
margin-bottom: 10px;
color: #333333;
}
input[type="text"], textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #cccccc;
border-radius: 5px;
box-sizing: border-box;
}
input[type="submit"] {
background-color: #333333;
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #555555;
}
</style>
</code></pre>
</head>
<body>
<h1>用户反馈页面</h1>
<form>
<label for="name">姓名</label>
<input type="text" id="name" name="name" required>
<pre><code> <label for="email">邮箱</label>
<input type="text" id="email" name="email" required>
<label for="message">留言</label>
<textarea id="message" name="message" rows="5" required></textarea>
<input type="submit" value="提交反馈">
</form>
</code></pre>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/3O7 著作权归作者所有。请勿转载和采集!