<!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>		&lt;label for=&quot;email&quot;&gt;电子邮箱&lt;/label&gt;
		&lt;input type=&quot;text&quot; id=&quot;email&quot; name=&quot;email&quot; placeholder=&quot;请输入您的电子邮箱&quot; required&gt;

		&lt;label for=&quot;content&quot;&gt;内容&lt;/label&gt;
		&lt;textarea id=&quot;content&quot; name=&quot;content&quot; rows=&quot;10&quot; placeholder=&quot;请输入您的反馈内容&quot; required&gt;&lt;/textarea&gt;

		&lt;input type=&quot;submit&quot; value=&quot;提交反馈&quot;&gt;
	&lt;/form&gt;
&lt;/div&gt;
</code></pre>
</body>
</html>
用html+css写一个自适应用户反馈页面

原文地址: https://www.cveoy.top/t/topic/3P5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录