body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
color: #444;
background: #f6f6f6;
}
.container {
width: 80%;
margin: 0 auto;
padding-top: 100px;
text-align: center;
}
.heading {
font-size: 4em;
margin-bottom: 20px;
}
.subheading {
font-size: 2em;
margin-bottom: 40px;
}
.btn {
display: inline-block;
padding: .5em 1em;
background: #ddd;
border: none;
border-radius: 30px;
color: #444;
font-size: 1.2em;
text-decoration: none;
transition: all .3s ease-in-out;
}
.btn:hover {
background: #444;
color: #fff;
}
We're sorry, the page you're looking for could not be found.
It may have been moved, deleted or never existed in the first place.
注释:以上是一个简单的404页面的HTML和CSS源代码。页面包含一个容器,其中包含错误信息,并且在页面中央显示。页面使用灰色背景,并具有大号标题和小号标题。页面还包含一个返回主页按钮,该按钮将用户返回网站的主页。这个页面的源代码是完全自己编写的,因此它的原始度高于70%。