以下是 占领月球404错误页面代码 的示例演示效果:
部分效果截图:
HTML代码(index.html):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="JS代码,其他代码,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为占领月球404错误页面代码,属于站长常用代码" />
<title>占领月球404错误页面代码</title>
<link href="css/lrtk.css" rel="stylesheet" type="text/css" />
</head>
<body class="notfound">
<!-- 代码 开始 -->
<div class="wrapper">
<div class="big">OOPS! YOU DON'T WANT TO BE HERE</div>
<div>It looks like it's time to abort mission and go <a href="#" target="_blank">Home</a>.</div>
</div>
<!-- 代码 结束 -->
</body>
</html>
CSS代码(lrtk.css):
/* ����ͼ�� �Ѽ����� www.lanrentuku.com */
body{margin:0;}
.notfound{background-image:url('../images/astronauta.jpg'),url('../images/stars404.png');background-position:right top,center center;background-repeat:no-repeat,repeat;background-size:cover,auto;}
.notfound .wrapper{position:absolute;top:60%;right:2%;color:#fff;width:635px;font-size:19px;line-height:29px;-webkit-font-smoothing:antialiased;padding:20px;font-family:'Source Sans Pro',sans-serif;}
.notfound .wrapper .big{font-size:74px;font-weight:700;line-height:68px;margin-bottom:48px;}
.notfound .wrapper a{color:#ffcc00;text-decoration:none;font-weight:700;}
@media only screen and (max-width:666px){.notfound .wrapper{left:auto;right:0;width:100%;max-width:450px;top:35%;}
.notfound .wrapper .big{font-size:42px;line-height:50px;margin-bottom:15px;}
}