生成一个好看的错误页html模板
时间: 2024-06-06 08:05:29 浏览: 13
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Error Page</title>
<style>
body {
background-color: #f8f8f8;
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
color: #333333;
padding-top: 50px;
text-align: center;
}
h1 {
font-size: 48px;
margin-bottom: 20px;
}
p {
margin-bottom: 30px;
}
a {
color: #333333;
text-decoration: underline;
}
a:hover {
color: #666666;
}
.button {
display: inline-block;
background-color: #333333;
color: #ffffff;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #666666;
}
</style>
</head>
<body>
<h1>Oops!</h1>
<p>Something went wrong. Please try again later.</p>
<a href="/">Go back to home page</a>
<div>
<a href="/" class="button">Go Back</a>
</div>
</body>
</html>