您的位置: 首页 » 技术小记 » typecho自定义404

typecho自定义404

作者:liyangyijie / 时间:September 15, 2014 /分类:技术小记 / 标签:小技术 /阅览次数:2,345

使用自定义的404页面非常简单。

自己制作一个404页面,把它命名为404.php 把这个页面放到你当前的模板目录下 在这里要注意404文件的编码模式必须是utf-8无bom模式,无论其网页声明如何。

<!DOCTYPE HTML>
<head>   <!--要与html文件兼容必须用utf8以及中文编码gb2312--> 
<title>~~~出错了~~~</title>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="5;url=http://www.fanyueciyuan.info"> 
<style> 
body{font-size:32px;color:red;text-align:center;background-attachment:fixed;background-color:black;}
#f{
-webkit-transition:All 1s ease-in-out;
  -moz-transition:All 1s ease-in-out;
   -ms-transition:All 1s ease-in-out;
    -o-transition:All 1s ease-in-out;        
}
#f:hover{
cursor:pointer; 
z-index:3;
        -webkit-transform:scale(1.1);
           -moz-transform:scale(1.1);
            -ms-transform:scale(1.1);
             -o-transform:scale(1.1);                           
}
.left { 
border: 0; 
box-shadow:0 18px 12px -12px #000;
}
</style>
</head>
<body >
<div id="f" class="left">
您要找的的网页不存在,5秒后返回主页</div>
</body>                      
</html>

上一篇 : 便携文件恢复软件 下一篇 : 自己站点的二维码

添加新评论