zoukankan      html  css  js  c++  java
  • 一个简单的遮罩层

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
           <script type="text/javascript">
               function show() {
                   document.getElementById("xie").style.display = "";
                   document.getElementById("content1").style.display = "";
                   document.getElementById("xie").style.filter = "Alpha(Opacity=30)";//透明度
                   document.getElementById("xie").style.opacity = ".80";IE透明度
                   //document.getElementById("content1").innerHTML = "你的内容<input onclick='hide()' type='button' value='确定'/>";
               }
               function hide() {
                   document.getElementById("xie").style.display = "none";
                   document.getElementById("content1").style.display = "none";
               }
        </script>
    </head>
    <body>
    <div style="100%; background-color:#cccccc; display:none; height: 100%; position:fixed; left: 0; top: 0;" id="xie"></div>
    <div style=" 260px; display:none; height: 113px; position:absolute; left: 244px; top: 137px;" id="content1"></div>
    <div id="fuck">
    <input onClick="show()" type="button" value="显示"/>
    </div>
    </body>
    </html>

  • 相关阅读:
    AutoCompleteTextView 简单用法
    照片颠倒问题及查询摄像头参数问题的解决
    Android Studio-引用jar及so文件
    file新建文件及文件夹
    appcompat_v7报错
    fresco加载本地图片、gif资源
    android根据图片路径显示图片
    sublime text3 及相关的安装
    win 10通过自带IIS搭建ftp
    LCA
  • 原文地址:https://www.cnblogs.com/YuanShuai/p/2388101.html
Copyright © 2011-2022 走看看