File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 88
99 1. 该项目收集了几个404的页面模板,可用于替换原生的404页面。我这里只是进行整理,部分来自网络,部分来自其他项目。
1010
11- 2. 自定义一个404页面好像并不难,难的是如何让”状态码为404的请求“都转向我们自定义的404页面,关于这个问题可参考我转发的一篇博客:[ 三种思路实现自定义404页面] ( https://blog.csdn.net/weixin_41287260/article/details/96030104 ) ,我这里用的是第三种:利用web容器提供的error-page,在web.xml中添加 <error-page >标签即可实现,如下所示:
11+ 2. 自定义一个404页面好像并不难,难的是如何让”状态码为404的请求“都转向我们自定义的404页面,关于这个问题可参考我转发的一篇博客:[ 三种思路实现自定义404页面] ( https://blog.csdn.net/weixin_41287260/article/details/96030104 ) ,我这里用的是第三种:利用web容器提供的error-page标签,在 ` web.xml ` 中添加 <error-page >标签即可实现,如下所示:
1212
1313``` html
1414<error-page >
3131 - 404页面5:蓝色,纯文字
3232
33332 . 动态404页面:HTML+CSS动画+简单的js交互。(浏览器加载时,会比较耗内存。)
34- - 404动态页面1:(暂未添加)
34+ - 404动态页面1:纯css3海面上404页面动画特效
3535 - 404动态页面2:(暂未添加)
3636
37373 . 404小游戏:
3838
39- - [ 吾爱破解论坛--游戏《圈小猫》] ( https://www.52pojie.cn/threa )
40-
41- - 404小游戏1: 吾爱破解社区-猫(暂未添加)
39+ - 404小游戏1: 吾爱破解社区--404游戏《圈小猫》] ( https://www.52pojie.cn/12 )
4240
4341 - 404小游戏2:google-酷跑(暂未添加)
4442
4543
4644
45+ ### 致谢:
46+
47+ 1 . i7素材网:http://www.17sucai.com,部分404页面来自此网站。
48+ 2 . 吾爱破解社区:https://www.52pojie.cn,一开始想起自定义404页面就是受《圈小猫》游戏的影响,该项目中的此部分内容转载自:吾爱破解社区在github上的开源项目: < https://github.com/ganlvtech/phaser-catch-the-cat > ,游戏试玩地址:< https://ganlvtech.github.io/phaser-catch-the-cat/ > 。
49+
50+
4751
4852### 补充内容:
4953
50- 1 . 应用js的三种方式
51- 2 . 使超链接失效的方法
52- 3 . 实现跳转到上一页的方法
54+ 1 . 应用js的三种方式。
55+ 2 . 使超链接失效的方法。
56+ 3 . 实现跳转到上一页的方法。
5357
5458
5559
@@ -66,9 +70,9 @@ Tomcat7.0
6670
67711.克隆项目到本地:git clone https://github.com/yansheng836/404pages.git
6872
69- 2.1利用IDE(因为后期考虑添加另外两种访问404的方法):导入(my)eclipse,调整相关环境,部署到Tomcat,访问index .html。
73+ 2.1利用IDE(因为后期考虑添加另外两种访问404的方法):导入(my)eclipse,调整相关环境,部署到Tomcat,访问 ` index .html` 。
7074
71- 2.2不利用IDE(只能查看404页面,不能实现让”状态码为404的请求“都转向我们自定义的404页面):直接用浏览器打开index .html。
75+ 2.2不利用IDE(只能查看404页面,不能实现让”状态码为404的请求“都转向我们自定义的404页面):直接用浏览器打开 ` index .html` 。
7276
7377
7478
@@ -78,6 +82,8 @@ Tomcat7.0
7882
7983
8084
85+
86+
8187## License
8288
8389![ GitHub] ( https://img.shields.io/github/license/yansheng836/404pages.svg )
You can’t perform that action at this time.
0 commit comments