我想要一段漂亮的表单提交代码
时间: 2023-06-02 22:08:12 浏览: 64
以下是一段漂亮的基础表单提交代码:
```
<html>
<head>
<title>表单提交</title>
<style>
form {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
}
label, input {
margin-bottom: 20px;
font-size: 16px;
text-align: center;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<form method="post" action="submit.php">
<label for="name">姓名:</label>
<input type="text" id="name" name="name">
<label for="email">邮箱:</label>
<input type="email" id="email" name="email">
<label for="message">留言:</label>
<textarea id="message" name="message"></textarea>
<input type="submit" value="提交">
</form>
</body>
</html>
```
请注意,这只是一个基本的表单提交代码示例。具体实现方式可能因需求而有所不同。