404页面优化

This commit is contained in:
wolegca 2019-10-23 02:39:12 +08:00
parent eeea64c737
commit 0a1f007c7c
2 changed files with 14 additions and 2 deletions

View File

@ -34,7 +34,7 @@ permalink: /404.html
</label> </label>
<div class="NotFound"> <div class="NotFound">
<!--NOT FOUND--> 即将回到首页。。。
</div> </div>
</div> </div>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>

View File

@ -316,10 +316,22 @@ body {
left: 0px left: 0px
} }
.NotFound {
display: block;
position: absolute;
width:100%;
text-align: center;
top:50%;
transform: translateY(-50%);
color: white;
font-size: 24px;
}
.container { .container {
max-width: 1440px; max-width: 1440px;
margin: 0 auto; margin: 0 auto;
position: relative position: relative;
min-height: 100%;
} }
.container:before { .container:before {