用html+css写一个自适应用户反馈页面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户反馈页面</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}
.container {
width: 80%;
margin: 0 auto;
background-color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
h1 {
font-size: 36px;
font-weight: bold;
margin-bottom: 20px;
}
form {
display: flex;
flex-wrap: wrap;
margin-bottom: 20px;
}
label {
width: 100%;
margin-bottom: 10px;
font-size: 20px;
font-weight: bold;
}
input[type="text"], textarea {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #f5f5f5;
font-size: 16px;
margin-bottom: 20px;
}
input[type="submit"] {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<div class="container">
<h1>用户反馈</h1>
<form>
<label for="name">姓名</label>
<input type="text" id="name" name="name" placeholder="请输入您的姓名" required>
<pre><code> <label for="email">电子邮箱</label>
<input type="text" id="email" name="email" placeholder="请输入您的电子邮箱" required>
<label for="content">内容</label>
<textarea id="content" name="content" rows="10" placeholder="请输入您的反馈内容" required></textarea>
<input type="submit" value="提交反馈">
</form>
</div>
</code></pre>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/3P5 著作权归作者所有。请勿转载和采集!