分享一款灰色调的自适应404错误页面源码,源码是卡通人物居中带指示牌,上面显示404错误,提醒用户返回首页或联系客服。
页面展示
下载地址
https://dmfhy.lanzout.com/iiGuk14ctzhe
源代码展示
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>404页面 - xiaolanzy.com</title>
<meta name="renderer" content="webkit"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"/>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "微软雅黑";
}
img {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.container {
max-width: 90%;
margin: 0 auto;
padding-top: 80px;
}
.bg {
display: block;
max-width: 100%;
margin: 0px auto;
}
.btn {
width: 400px;
margin: 0 auto;
max-width: 100%;
margin-top: 40px;
}
.btn a {
float: left;
text-decoration: none;
width: 46.5%;
border: 1px solid #5298ff;
background: #5298ff;
color: #FFF;
display: block;
height: 46px;
line-height: 44px;
text-align: center;
font-size: 16px;
border-radius: 3px;
overflow: hidden;
}
.btn .goindex {
margin-right: 7%;
}
.btn .lx {
border: 1px solid #d8d8d8;
background: #ffffff;
color: #8c8c8c;
}
@media screen and (max-width: 500px) {
.btn {
width: 85%;
}
.btn a {
width: 100%;
font-size: 15px;
height: 42px;
line-height: 42px;
}
.btn .goindex {
margin-right: 0;
margin-bottom: 20px;
}
}
</style>
</head>
<body>
<div class="container">
<img src="assets/images/404.png" class="bg"/>
<div class="btn">
<a href="https://www.xiaolanzy.com" class="goindex">回到首页</a>
<a href="https://www.xiaolanzy.com" target="_blank" class="lx">联系站长</a>
<div style="clear: both;"></div>
</div>
</div>
</body>
</html>
原创文章,作者:李康哲,如若转载,请注明出处:https://www.xiaolanzy.com/73.html