表白页面代码 - 用HTML制作浪漫告白网页
<!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> <label for="to">我想对谁表白:</label>
<input type="text" id="to" name="to" required>
<label for="message">我的表白:</label>
<textarea id="message" name="message" rows="5" required></textarea>
<input type="submit" value="发送">
</form>
</code></pre>
</body>
</html>
原文地址: http://www.cveoy.top/t/topic/lRqO 著作权归作者所有。请勿转载和采集!