网站必备创意404错误页面模板:数字卡通结合的新奇设计
创建自定义404页面html和css,这是一款网站必备的404错误页面模板,创意404报错设计,画面中呈现了数字卡通结合的图案设计,新奇有创意,适用于任意类型的网站。

HTML代码如下:
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>博客趣 - Create Custom 404 Page in HTML and CSS</title> <link rel="stylesheet" href="./style.css"> </head> <body> <!-- partial:index.partial.html --> <div> <img src="http://www.bokequ.com/show/404/1/page_not_found_su7k.svg" alt="404"> <h4> 哎呀!您正在查找的页面不存在 </h4> <p> <a href="http://www.kajuan.net/"> 转到主页 </a> </p> </div> <!-- partial --> </body> </html>
CSS代码如下:
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Roboto", sans-serif;
}
.error-page-container {
width: 100%;
min-height: 100vh;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
text-align: center;
background: url(./bg.png) center no-repeat;
background-size: cover;
position: relative;
padding: 0 20px;
}
.error-page-container:after {
content: '';
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.3);
position: absolute;
top: 0; left: 0;
}
.error-page-container * {
position: relative;
z-index: 1;
}
.error-page-container img {
width: 100%;
max-width: 500px;
margin-bottom: 25px;
}
.error-page-container h4 {
color: #333;
text-transform: uppercase;
letter-spacing: 2px;
}
.error-page-container .button {
display: inline-block;
margin-top: 20px;
padding: 18px 30px;
background: white;
color: #6c63ff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
text-decoration: none;
text-transform: uppercase;
font-family: "Montserrat", sans-serif;
font-weight: 700;
letter-spacing: 1px;
border-radius: 4px;
}
.error-page-container .button:hover {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


