css 没有空缺404 CSS仅限 Posted 2021-05-13
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 没有空缺404 CSS仅限相关的知识,希望对你有一定的参考价值。
No Vacancy 404 CSS Only
-----------------------
CSS version of No Vacancy 404 http://codepen.io/rileyjshaw/pen/ufEIH by Riley Shaw
Forked from [Chris Coyier](http://codepen.io/chriscoyier/)'s Pen [No Vacancy 404 CSS Only](http://codepen.io/chriscoyier/pen/FmnGj/).
A [Pen](http://codepen.io/sethkontny/pen/ADKyb) by [seth kontny](http://codepen.io/sethkontny) on [CodePen](http://codepen.io/).
[License](http://codepen.io/sethkontny/pen/ADKyb/license).
<link href='http://fonts.googleapis.com/css?family=Monoton' rel='stylesheet' type='text/css'>
<div>
<p id="error">C<span>r</span>ypt0's p@rty</p>
<p id="code">4<span>0</span><span>4</span></p>
</div>
// For more check out zachsaucier.com
body { background-color: #111111; }
div {
padding: 40px;
font-size: 150px;
font-family: 'Monoton', cursive;
text-align: center;
text-transform: uppercase;
text-shadow: 0 0 80px red,0 0 30px FireBrick,0 0 6px DarkRed;
color: red;
}
div p { margin:0; }
#error:hover { text-shadow: 0 0 200px #ffffff,0 0 80px #008000,0 0 6px #0000ff; }
#code:hover { text-shadow: 0 0 100px red,0 0 40px FireBrick,0 0 8px DarkRed; }
#error {
color: #fff;
text-shadow: 0 0 80px #ffffff,0 0 30px #008000,0 0 6px #0000ff;
}
#error span {
animation: upper 11s linear infinite;
}
#code span:nth-of-type(2) {
animation: lower 10s linear infinite;
}
#code span:nth-of-type(1) {
text-shadow: none;
opacity:.4;
}
@keyframes upper {
0%,19.999%,22%,62.999%,64%, 64.999%,70%,100% {
opacity:.99; text-shadow: 0 0 80px #ffffff,0 0 30px #008000,0 0 6px #0000ff;
}
20%,21.999%,63%,63.999%,65%,69.999% {
opacity:0.4; text-shadow: none;
}
}
@keyframes lower {
0%,12%,18.999%,23%,31.999%,37%,44.999%,46%,49.999%,51%,58.999%,61%,68.999%,71%,85.999%,96%,100% {
opacity:0.99; text-shadow: 0 0 80px red,0 0 30px FireBrick,0 0 6px DarkRed;
}
19%,22.99%,32%,36.999%,45%,45.999%,50%,50.99%,59%,60.999%,69%,70.999%,86%,95.999% {
opacity:0.4; text-shadow: none;
}
}
以上是关于css 没有空缺404 CSS仅限的主要内容,如果未能解决你的问题,请参考以下文章
CSS 在单个帖子中将类别名称显示为没有链接(仅限名称)的页面标题
带有彩色背景的不透明文本 - 仅限 CSS
Django没有在404页面上应用来自应用程序的CSS文件
CSS 仅限CSS的菜单
css 仅限Internet Explorer(IE)CSS。支持版本10+
无限滚动轮播(仅限 CSS)