前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >个性404页面

个性404页面

作者头像
废江_小江
发布2022-09-05 13:24:13
5950
发布2022-09-05 13:24:13
举报
文章被收录于专栏:总栏目

一个很个性好看的404页面

代码语言:javascript
复制
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>废江-404</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
 
 
<script type="text/javascript">
	$(document).mousemove(function (event) {
  $('.torch').css({
    'top': event.pageY,
    'left': event.pageX
  });
});
</script>
<!--<link rel="stylesheet" href="css/style.css">-->
<style type="text/css">
	html {
  height: 100%;
}
 
body {
  height: 100%;
  background: url("https://imgbeed.jiangkk.top/images/2020/01/03/6.jpg") no-repeat left top;
  background-size: cover;
  overflow: hidden;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}
 
.text h1 {
  color: #011718;
  margin-top: -200px;
  font-size: 15em;
  text-align: center;
  text-shadow: -5px 5px 0px rgba(0, 0, 0, 0.7), -10px 10px 0px rgba(0, 0, 0, 0.4), -15px 15px 0px rgba(0, 0, 0, 0.2);
  font-family: monospace;
  font-weight: bold;
}
 
.text h2 {
  color: black;
  font-size: 5em;
  text-shadow: -5px 5px 0px rgba(0, 0, 0, 0.7);
  text-align: center;
  margin-top: -150px;
  font-family: monospace;
  font-weight: bold;
}
 
.text h3 {
  color: white;
  margin-left: 30px;
  font-size: 2em;
  text-shadow: -5px 5px 0px rgba(0, 0, 0, 0.7);
  margin-top: -40px;
  font-family: monospace;
  font-weight: bold;
}
 
.torch {
  margin: -150px 0 0 -150px;
  width: 500px;
  height: 500px;
  box-shadow: 0 0 0 9999em #000000f7;
  opacity: 1;
  border-radius: 50%;
  position: fixed;
  background: rgba(0, 0, 0, 0.1);
}
.torch:after {
  content: '';
  display: block;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  box-shadow: inset 0 0 40px 2px #000, 0 0 20px 4px rgba(13, 13, 10, 0.8);
}
 
</style>
</head>
<body>
 
<div class="text">
  <h1>404</h1>
	<h2>Uh, Ohh</h2>
  <h3>对不起,我们找不到你要找的东西,因为这里太黑了</h3>
</div>
<div class="torch"></div>
 
<!-- <script src='js/jquery.min.js'></script> -->
 
<script src="js/script.js"></script>
 
</body>
</html>

演示效果请在pc端查看

废江博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 转载请注明原文链接:个性404页面

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-01-03),如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 一个很个性好看的404页面
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档