纯代码404页面

本404代码为本人原创,纯手工,代码如下,请需要者心情取胜。

<!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=UTF-8" />
 <title>404 Not Found</title>
 <script>
 function daxiao(){
 var obj=document.getElementById("main");
 var main_height=obj.offsetHeight;

// 获取窗口高度
 if (window.innerHeight)
 {
 var winHeight = window.innerHeight;
 }
 else if ((document.body) && (document.body.clientHeight))
 {
 var winHeight = document.body.clientHeight;
 }
 //alert(winHeight);
 var a=(winHeight-main_height)/2;
 a=a.toFixed(0)-10;
 if(a>=1)
 {
 obj.style.marginTop=a+"px";
 }
 else
 {
 obj.style.marginTop="0px";
 }

}
 </script>

<style>
 .r_td{
 width:500px;
 font-family:'Edwardian Script ITC';
 font-size: 48px;
 color: #006;
 border-left:1px #f00 dashed;
 }
 .l_u_td{
 width:500px;
 font-family: 'Edwardian Script ITC';
 font-size: 240px;
 color: #006;
 text-align: center;
 vertical-align: middle;
 }
 .l_d_td{
 font-family: 'Edwardian Script ITC';
 font-size: 100px;
 color: #006;
 text-align: center;
 vertical-align: middle;
 }
 #main1 {
 margin-top: 200px;

}
 </style>

</head>
 <body onload="daxiao()" onresize="daxiao()" >

<table id="main" align="center" cellspacing="0px" cellpadding="0px">

<tr>

<td class="l_u_td">
 404
 </td>

<td rowspan="2" class="r_td">
 There are the following problems:
 &nbsp;&nbsp;&nbsp;&nbsp;1, access to the page does not exist
 &nbsp;&nbsp;&nbsp;&nbsp;2, the server problems
 &nbsp;&nbsp;&nbsp;&nbsp;3, unauthorized access
 </td>

</tr>

<tr>

<td class="l_d_td">
 Not Found
 </td>

</tr>

</table>

</body>
 </html>

 

 

阅读剩余
THE END