• 顶部下啦菜单


    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Pure CSS Slide Down Toggle</title>
    <style type="text/css">
    * {
    margin:0;
    padding:0;
    font-family:"Helvetica Neue", Helvetica, Sans-serif;
    word-spacing:-2px;
    }
    h1 {
    font-size:40px;
    font-weight:bold;
    color:#191919;
    -webkit-font-smoothing: antialiased;
    }
    h2 {
    font-weight:normal;
    font-size:20px;
    color:#888;
    padding:5px 0;
    }
    .message {
    background:#181818;
    color:#FFF;
    position: absolute;
    top: -250px;
    left: 0;
    100%;
    height: 250px;
    padding: 20px;
    transition: top 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
    overflow: hidden;
    box-sizing: border-box;
    }
    .message h1 {
    color:#FFF;
    }
    #toggle {
    position:absolute;
    appearance:none;
    cursor:pointer;
    left:-100%;
    top:-100%;
    }
    #toggle + label {
    position:absolute;
    cursor:pointer;
    padding:10px;
    background: #26ae90;
    100px;
    border-radius: 3px;
    padding: 8px 10px;
    color: #FFF;
    line-height:20px;
    font-size:12px;
    text-align:center;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    margin:20px 50px;
    transition:all 500ms ease;
    }
    #toggle + label:after {
    content:"Open"
    }
    .container {
    transition: margin 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
    padding:5em 3em;
    }
    #toggle:checked ~ .message {
    top: 0;
    }
    #toggle:checked ~ .container {
    margin-top: 250px;
    }
    #toggle:checked + label {
    background:#dd6149;
    }
    #toggle:checked + label:after {
    content:"Close"
    }
    </style>
    </head>
    <body>
    <input type="checkbox" name="toggle" id="toggle" />
    <label for="toggle"></label>
    <div class="container">
    <h1>Pure CSS3 Slide Down Toggle Demo</h1>
    <h2> Click the Open button to see hidden mesage.</h2>
    </div>
    <div class="message"><h1> hello, I'm a hidden message. You found it.</h1>
    <h2>Now Click the Heart button in the bottom to support CSS3</h2>
    </div>
    </body>
    </html>

  • 相关阅读:
    总结ORACLE学习8023
    set @CurrentID=@@IDENTITY
    一个IT人:跳槽一定要谨慎
    SQL Server数据库开发(转自CSDN)
    46个不得不知的生活小常识
    CodeProjectSome Cool Tips For .Net 之一
    数据库原理综合习题答案
    EDM
    CodeProject Some Cool Tips for .NET之二
    The operation is not valid for the state of the transaction.
  • 原文地址:https://www.cnblogs.com/wangruifang/p/5986171.html
Copyright © 2020-2023  润新知