写一个404网页代码要求简洁美观
<!DOCTYPE html>
<html>
<head>
<title>404 Not Found</title>
<style>
body {
background-color: #f8f8f8;
font-family: Arial, sans-serif;
text-align: center;
}
<pre><code> h1 {
font-size: 5em;
color: #555;
margin-top: 100px;
}
p {
font-size: 1.5em;
color: #888;
margin-top: 50px;
}
a {
color: #555;
text-decoration: none;
border: 2px solid #555;
padding: 10px 20px;
border-radius: 5px;
font-size: 1.2em;
transition: all 0.3s;
}
a:hover {
background-color: #555;
color: #f8f8f8;
}
</style>
</code></pre>
</head>
<body>
<h1>404</h1>
<p>Sorry, the page you're looking for could not be found.</p>
<a href="#">Go back home</a>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/Cmw 著作权归作者所有。请勿转载和采集!