一款純css3實現的漂亮的404頁面

來源:互聯網
上載者:User

標籤:style   blog   http   io   ar   color   os   sp   for   

之前為大家分享了那些創意有趣的404頁面, html5和css3打造一款創意404頁面, HTML5可愛的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="">Home</a></li>                <li><a href="">Portfolio</a></li>            </ul>        </article>    </section>

css3代碼:

     body        {            background-color: #0A7189;            color: #fff;            font: 100% "Lato" , sans-serif;            font-size: 1.8rem;            font-weight: 300;        }                a        {            color: #75C6D9;            text-decoration: none;        }                h3        {            margin-bottom: 1%;        }                ul        {            list-style: none;            margin: 0;            padding: 0;            line-height: 50px;        }                li a:hover        {            color: #fff;        }                .center        {            text-align: center;        }                /* Search Bar Styling */        form > *        {            vertical-align: middle;        }                .srchBtn        {            border: 0;            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: 0;            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: 700;            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: 100;        }

註:本文愛編程原創文章,轉載請註明原文地址:http://www.w2bc.com/Article/11301

一款純css3實現的漂亮的404頁面

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.