首页 > 运营 > 建站经验 > 正文

一个简单漂亮的404错误页面

2020-09-12 13:00:44
字体:
来源:转载
供稿:网友
    先看看演示效果图:

    以下是代码实例:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>404 Not Found</title>
<style type="text/css">
<!--
.t {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #CC0000;
}
.c {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
        font-weight: normal;
        color: #000000;
        line-height: 18px;
        text-align: center;
        border: 1px solid #CCCCCC;
        background-color: #FFFFEC;
}
body {
        background-color: #FFFFFF;
        margin-top: 100px;
}
-->
</style>
</head>
<body>
<div align="center">
  <h2><span class="t">404 Not Found</span></h2>
  <table border="0" cellpadding="8" cellspacing="0" width="460">
    <tbody>
      <tr>
        <td class="c">The requested URL was not found on this server.</td>
      </tr>
    </tbody>
  </table>
</div>
</body>
</html>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表