zoukankan      html  css  js  c++  java
  • 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>
    

      

  • 相关阅读:
    正则表达式
    navicat 远程连接mysql
    配置网络
    swoole 定时器
    goroutine调度源码阅读笔记
    Golang GC 算法
    git常用操作合集
    utf8和utf8mb4的区别
    正则表达式忽略分组顺序匹配(前瞻、后顾、负前瞻、负后顾的应用)
    goroutine上下文切换机制
  • 原文地址:https://www.cnblogs.com/zerohu/p/6863856.html
Copyright © 2011-2022 走看看