提交成功页面代码html
时间: 2023-08-24 16:06:28 浏览: 36
以下是一个简单的提交成功页面的 HTML 代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>提交成功</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 50px;
}
h1 {
font-size: 36px;
margin-bottom: 20px;
}
p {
font-size: 24px;
margin-bottom: 40px;
}
button {
font-size: 18px;
padding: 10px 20px;
border: none;
background-color: #007bff;
color: #fff;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<h1>提交成功</h1>
<p>您的表单已成功提交!</p>
<button onclick="window.location.href = 'index.html';">返回首页</button>
</body>
</html>
```
此示例中的页面包含一个标题、一个段落和一个“返回首页”按钮。你可以根据自己的需求来修改代码,自定义提交成功页面的样式和内容。