首页 技术 正文
技术 2022年11月7日
0 收藏 699 点赞 894 浏览 1596 个字

之前为大家分享了那些创意有趣的404页面, html5和css3打造一款创意404页面, HTML5可爱的404页面动画很逗的机器人。今天再给大家分享一款纯css3实现的漂亮的404页面。效果图如下:

一款纯css3实现的漂亮的404页面

在线预览   源码下载

实现的代码。

html代码:

 <section class="center">
<article>
<h1 class="header">
404</h1>
<p class="error">
ERROR</p>
</article>
<article>
<img src="vovg1x.png" alt="Funny Face">
</article>
<article>
<p>
Lost? Maybe I can help.</p>
</article>
<article>
<form action="">
<input type="text" name="search" class="srchFld" placeholder="What are you looking for?"
required />
<button type="submit" class="srchBtn">
Search</button>
</form>
</article>
<article>
<h3>
My Suggestions.</h3>
<ul>
<li><a href="" rel="external nofollow" rel="external nofollow" >Home</a></li>
<li><a href="" rel="external nofollow" rel="external nofollow" >Portfolio</a></li>
</ul>
</article>
</section>

css3代码:

     body
{
background-color: #0A7189;
color: #fff;
font: 100% "Lato" , sans-serif;
font-size: 1.8rem;
font-weight:;
} a
{
color: #75C6D9;
text-decoration: none;
} h3
{
margin-bottom: 1%;
} ul
{
list-style: none;
margin:;
padding:;
line-height: 50px;
} li a:hover
{
color: #fff;
} .center
{
text-align: center;
} /* Search Bar Styling */
form > *
{
vertical-align: middle;
} .srchBtn
{
border:;
border-radius: 7px;
padding: 0 17px;
background: #e74c3c;
width: 99px;
border-bottom: 5px solid #c0392b;
color: #fff;
height: 65px;
font-size: 1.5rem;
cursor: pointer;
} .srchBtn:active
{
border-bottom: 0px solid #c0392b;
} .srchFld
{
border:;
border-radius: 7px;
padding: 0 17px;
max-width: 404px;
width: 40%;
border-bottom: 5px solid #bdc3c7;
height: 60px;
color: #7f8c8d;
font-size: 19px;
} .srchFld:focus
{
outline-color: rgba(255, 255, 255, 0);
} /* 404 Styling */
.header
{
font-size: 13rem;
font-weight:;
margin: 2% 0 2% 0;
text-shadow: 0px 3px 0px #7f8c8d;
} /* Error Styling */
.error
{
margin: -70px 0 2% 0;
font-size: 7.4rem;
text-shadow: 0px 3px 0px #7f8c8d;
font-weight:;
}

注:本文爱编程原创文章,转载请注明原文地址:http://www.w2bc.com/Article/11301

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,000
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,512
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,358
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,141
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,771
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,849