zoukankan      html  css  js  c++  java
  • html-透明背景层

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>jquery手写弹出层背景半透明,内容不透明</title>
    <script src="jquery.min.js"></script>
    </head>
    <body>
    <style>
    *{ margin:0; padding:0;}
    .alertDiv{ position:fixed; width:100%; height:100%; top:0; color:#fff;}
    .alertCon{ position:absolute; width:100%; height:100%; text-align:center; margin-top:20%; z-index:999;}
    .alertBg{ position:absolute; width:100%; height:100%; background:#000; opacity:0.7; z-index:99;}
    </style>
    <div class="alertDiv">
        <div class="alertCon">
            <img src="QQ截图20170306172127.png" />
        </div>
        <div class="alertBg"></div>
    </div>
    
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    <p>Body内容</p>
    </body>
    </html>
  • 相关阅读:
    时序数据库入门
    MySQL执行计划extra中的using index 和 using where using index 的区别
    ETL的详细解释定义
    六种 主流ETL 工具的比较(DataPipeline,Kettle,Talend,Informatica,Datax ,Oracle Goldengate)
    使用 IntraWeb (37)
    使用 IntraWeb (36)
    使用 IntraWeb (35)
    使用 IntraWeb (34)
    使用 IntraWeb (33)
    使用 IntraWeb (32)
  • 原文地址:https://www.cnblogs.com/hwaggLee/p/6554552.html
Copyright © 2011-2022 走看看