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>
  • 相关阅读:
    java表格的使用 单元格绘制二
    Java表格的简单使用一
    Servlet接口五种方法介绍
    C# 图片识别
    asp.net 使用rabbitmq事例
    Windows下安装使用python的Flask框架
    python中闭包的理解
    sql中遍历字符串
    asp.net mvc easyui tree
    c# Castle Windsor简单例子
  • 原文地址:https://www.cnblogs.com/hwaggLee/p/6554552.html
Copyright © 2011-2022 走看看