• 纯css实现弹窗左右垂直居中效果


    1、HTML

    <div class="container">
        <div class="dialog">
            <div class="content">内容占位</div>
        </div>
    </div>

    2、CSS

    .container {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        /* for IE8 */
        background: url(data:image/png;base64,iVB...g==);
        /* for IE9+ */
        background: rgba(0,0,0,.5), none;
        text-align: center;
        white-space: nowrap;
        z-index: 99;
    }
    .container:after {
        content: "";
        display: inline-block;
        height: 100%;
        vertical-align: middle;
    }
    .dialog {
        display: inline-block;
        vertical-align: middle;
        border-radius: 6px;
        background-color: #fff;
        text-align: left;
        white-space: normal;
    }
  • 相关阅读:
    gin内置验证器使用
    model
    work,工作模式
    orm框架
    simple模式下rabbitmq的代码
    rabbitmq介绍
    订阅模式
    路由模式
    redis五大数据类型
    Go操作redis
  • 原文地址:https://www.cnblogs.com/gopark/p/10254003.html
Copyright © 2020-2023  润新知