<!DOCTYPE html>
<html>
<head>
	<title>表白页面</title>
	<meta charset="UTF-8">
	<style type="text/css">
		body {
			background-color: #f5d5e5;
			font-family: Arial, sans-serif;
		}
		h1 {
			color: #f44336;
			text-align: center;
		}
		form {
			background-color: #fff;
			border-radius: 10px;
			padding: 20px;
			margin: 50px auto;
			max-width: 500px;
			box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
		}
		input[type='text'], textarea {
			display: block;
			width: 100%;
			padding: 10px;
			margin-bottom: 20px;
			border-radius: 5px;
			border: none;
			box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
			font-size: 16px;
			resize: none;
		}
		input[type='submit'] {
			background-color: #f44336;
			color: #fff;
			padding: 10px 20px;
			border-radius: 5px;
			border: none;
			cursor: pointer;
			font-size: 16px;
			transition: background-color 0.3s ease;
		}
		input[type='submit']:hover {
			background-color: #ff8a80;
		}
	</style>
</head>
<body>
	<h1>表白页面</h1>
	<form action="#" method="post">
		<label for="name">我叫:</label>
		<input type="text" id="name" name="name" required>
<pre><code>	&lt;label for=&quot;to&quot;&gt;我想对谁表白:&lt;/label&gt;
	&lt;input type=&quot;text&quot; id=&quot;to&quot; name=&quot;to&quot; required&gt;

	&lt;label for=&quot;message&quot;&gt;我的表白:&lt;/label&gt;
	&lt;textarea id=&quot;message&quot; name=&quot;message&quot; rows=&quot;5&quot; required&gt;&lt;/textarea&gt;

	&lt;input type=&quot;submit&quot; value=&quot;发送&quot;&gt;
&lt;/form&gt;
</code></pre>
</body>
</html>
表白页面代码 - 用HTML制作浪漫告白网页

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

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