布一个email表单页面
时间: 2023-05-20 08:05:53 浏览: 80
好的,布一个email表单页面可以使用HTML和CSS来实现。以下是一个简单的示例代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>Email表单页面</title>
<style>
form {
display: flex;
flex-direction: column;
align-items: center;
}
input[type="text"], input[type="email"], textarea {
margin: 10px;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
width: 300px;
font-size: 16px;
}
input[type="submit"] {
margin: 10px;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
</style>
</head>
<body>
<form action="#" method="post">
<label for="name">姓名:</label>
<input type="text" id="name" name="name" required>
<label for="email">邮箱:</label>
<input type="email" id="email" name="email" required>
<label for="message">留言:</label>
<textarea id="message" name="message" rows="5" required></textarea>
<input type="submit" value="提交">
</form>
</body>
</html>
```
这个表单页面包含了姓名、邮箱和留言三个输入框,以及一个提交按钮。用户填写完表单后,点击提交按钮可以将表单数据发送到指定的URL。你可以根据需要修改表单的样式和提交的URL。