• sticky-css


    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
        <style>
        .main-content {
            position: relative;
            overflow: hidden;
            color: #fff;
        }
        
        .clearfix {
            display: inline-block
        }
        
        .clearfix:after {
            display: block;
            content: ".";
            height: 0;
            line-height: 0;
            clear: both;
            visibility: hidden
        }
        
        .detail {
            position: fixed;
             100%;
            height: 100%;
            z-index: 100;
            overflow: auto;
            top: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.4);
        }
        
        .detail-wrapper {
             100%;
            min-height: 100%;
        }
        
        .detail-close {
            position: relative;
             32px;
            height: 32px;
            margin: -64px auto 0 auto;
            clear: both;
            font-size: 32px;
        }
        
        .detail-main {
            /*margin-top: 64px;*/
            padding-bottom: 64px;
        }
        </style>
    </head>
    
    <body>
        <div class="main-content">
            <div class="detail">
                <div class="detail-wrapper clearfix">
                    <div class="detail-main">
                        <p>hello every body</p>
                        <p>hello every body</p>
                        <p>hello every body</p>           
                    </div>
                </div>
                <div class="detail-close">
                    <i>x</i>
                </div>
            </div>
        </div>
    </body>
    
    </html>
    

      

  • 相关阅读:
    day_15补充加总结
    Day_15 内置模块er
    sort 函数 与 sorted 函数区别
    python 代码风格------------PEP8规则
    python 返回值
    函数记忆 : startswith() 与 endswith
    RE模块使用
    正则表达式
    collections
    函数datetime
  • 原文地址:https://www.cnblogs.com/zerohu/p/6863856.html
Copyright © 2020-2023  润新知