!DOCTYPE htmlhtmlhead title购买留言title style body font-family Arial sans-serif; background-color #f2f2f2; margin 0; padding 0; h1 text-align center; margin-top 50px; form width 5
<!--声明文档类型-->
<!DOCTYPE html>
<html>
<head>
<!--设置页面标题-->
<title>购买留言</title>
<!--设置页面样式-->
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
h1 {
text-align: center;
margin-top: 50px;
}
form {
width: 500px;
margin: 50px auto;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
label {
display: block;
margin-bottom: 10px;
font-size: 18px;
font-weight: bold;
}
textarea {
width: 100%;
height: 150px;
padding: 10px;
font-size: 16px;
border: 2px solid #ccc;
border-radius: 5px;
resize: none;
}
input[type="submit"] {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<!--设置页面标题-->
<h1>购买留言</h1>
<!--设置表单-->
<form action="save_message.php" method="POST">
<!--设置文本标签和输入框-->
<label for="message">购买信息:</label>
<textarea id="message" name="message"></textarea>
<!--设置提交按钮-->
<input type="submit" value="提交">
</form>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/bpeF 著作权归作者所有。请勿转载和采集!