Skip to content

Commit ecb9c56

Browse files
committed
style: format the README.md
1 parent 65a1493 commit ecb9c56

File tree

1 file changed

+16
-41
lines changed

1 file changed

+16
-41
lines changed

README.md

Lines changed: 16 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
![GitHub](https://img.shields.io/github/license/yansheng836/404pages.svg) ![GitHub repo size](https://img.shields.io/github/repo-size/yansheng836/404pages.svg) ![GitHub release](https://img.shields.io/github/release/yansheng836/404pages.svg) ![GitHub last commit](https://img.shields.io/github/last-commit/yansheng836/404pages.svg) ![GitHub language count](https://img.shields.io/github/languages/count/yansheng836/404pages.svg) ![GitHub top language](https://img.shields.io/github/languages/top/yansheng836/404pages.svg)
22

3-
4-
53
# 404pages : HTTP Status 404 – Not Found
64

75
![404pages](https://s2.ax1x.com/2019/07/17/ZLQV0g.jpg)
86

7+
## 介绍
98

9+
1. 该项目收集了几个404的页面模板,可用于替换原生的404页面。我这里只是进行整理,部分来自网络,部分来自其他项目。
1010

11-
## 介绍:
12-
13-
​ 1. 该项目收集了几个404的页面模板,可用于替换原生的404页面。我这里只是进行整理,部分来自网络,部分来自其他项目。
14-
15-
​ 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>标签即可实现,如下所示:
1612

1713
```xml
1814
<error-page>
@@ -21,11 +17,9 @@
2117
</error-page>
2218
```
2319

24-
3. 我已将每个404页面独立开来,并将他们整理到一个个二级文件夹。这样<font color="red">如果有需要,直接复制对应文件夹即可</font>;当然你也可以进行修改,对其进行个性化设置,可参考:[修改建议](https://github.com/yansheng836/404pages/blob/master/docs/change-advice.md)
20+
3. 我已将每个404页面独立开来,并将他们整理到一个个二级文件夹。这样<font color="red">如果有需要,直接复制对应文件夹即可</font>;当然你也可以进行修改,对其进行个性化设置,可参考:[修改建议](https://github.com/yansheng836/404pages/blob/master/docs/change-advice.md)
2521

26-
27-
28-
## 404页面分类:
22+
## 404页面分类
2923

3024
具体效果到 [github pages](https://www.yansheng.xyz/404pages/) 查看,下面是简单介绍。
3125

@@ -46,58 +40,39 @@
4640

4741
- 吾爱破解社区-《圈小猫》![eMwEAf.jpg](https://s2.ax1x.com/2019/07/27/eMwEAf.jpg)
4842
- 404小游戏2:google-酷跑(暂未添加)
49-
5043

51-
52-
53-
## 补充内容:
44+
## 补充内容
5445

5546
1. 应用js的三种方式。
5647
2. 使超链接失效的方法。
5748
3. 实现跳转到上一页的方法。
5849

59-
60-
61-
## 致谢:
50+
## 致谢
6251

6352
1. [i7素材网](http://www.17sucai.com):部分404页面来自该网站。
64-
65-
2. [吾爱破解社区](https://www.52pojie.cn):我当时想自定义404页面就是受《圈小猫》游戏的影响,我的项目中的此部分内容转载自:吾爱破解社区在github上的开源项目:[phaser-catch-the-cat](https://github.com/ganlvtech/phaser-catch-the-cat),游戏试玩地址:[https://ganlvtech.github.io/phaser-catch-the-cat/](https://ganlvtech.github.io/phaser-catch-the-cat/)
66-
67-
该项目使用一个游戏引擎写的,有兴趣可到官网了解:https://phaser.io/。
68-
69-
53+
2. [吾爱破解社区](https://www.52pojie.cn):我当时想自定义404页面就是受《圈小猫》游戏的影响,我的项目中的此部分内容转载自:吾爱破解社区在github上的开源项目:[phaser-catch-the-cat](https://github.com/ganlvtech/phaser-catch-the-cat),游戏试玩地址:<https://ganlvtech.github.io/phaser-catch-the-cat/>
54+
该项目使用一个游戏引擎写的,有兴趣可到官网了解:<https://phaser.io/>
7055

7156
## 声明
7257

73-
- 本项目仅用于学习交流使用,大部分网页源自网络,所有权归原作者所有,如涉及侵权,请联系我进行删除。
74-
58+
本项目仅用于学习交流使用,大部分网页源自网络,所有权归原作者所有,如涉及侵权,请联系我进行删除。
7559

76-
77-
## 我的环境:
60+
## 我的环境
7861

7962
myeclipse10.7, jdk1.8, Tomcat7.0
8063

64+
## 构建(使用)
8165

82-
83-
## 构建(使用):
84-
85-
1.克隆项目到本地:git clone https://github.com/yansheng836/404pages.git
86-
87-
2.1利用IDE(因为后期考虑添加另外两种访问404的方法):导入(my)eclipse,调整相关环境,部署到Tomcat,访问`index.html`
88-
89-
2.2不利用IDE(只能查看404页面,不能实现让”状态码为404的请求“都转向我们自定义的404页面):直接用浏览器打开`index.html`
90-
91-
66+
1. 克隆项目到本地:git clone https://github.com/yansheng836/404pages.git
67+
2. 利用IDE(因为后期考虑添加另外两种访问404的方法):导入(my)eclipse,调整相关环境,部署到Tomcat,访问`index.html`
68+
3. 不利用IDE(只能查看404页面,不能实现让”状态码为404的请求“都转向我们自定义的404页面):直接用浏览器打开`index.html`
9269

9370
## 总结
9471

9572
有空我会持续改进,希望可以加关注: `watch``star`或者`fork`,同时也方便下次访问。
9673

97-
98-
9974
## License
10075

10176
<div style="text-align:left"><img src="https://img.shields.io/github/license/yansheng836/404pages.svg"/></div>
10277

103-
This software is licensed under the MIT License. [View the license](https://github.com/yansheng836/404pages/blob/master/LICENSE).
78+
This software is licensed under the MIT License. [View the license](https://github.com/yansheng836/404pages/blob/master/LICENSE).

0 commit comments

Comments
 (0)