zoukankan      html  css  js  c++  java
  • div弹出层的效果带关闭按钮

    下面我做的这个是个进度条的弹出层

    
    
    <style type="text/css">
           
    
            #tuxiang {
                 57px;
            }
            /*div弹出框的css*/
          .tcck {
    
    	 440px;
    
    	height: 132px;
    
    	border: 1px solid #6E665A;
    
    	border-radius: 5px;
    
    	background: #fff;
    
    	padding-top: 10px;
    
    	position: absolute;
    
    	z-index: 99999999;
    
    	display: none;
    
    	left: 50%;/*FF IE7*/
    
    	top: 50%;/*FF IE7*/
    
    	margin-left: -220px!important;/*FF IE7 该值为本身宽的一半 */
    
    	margin-top: -140px!important;/*FF IE7 该值为本身高的一半*/
    
    	margin-top: 0px;
    
    	position: fixed!important;/*FF IE7*/
    
    	position: absolute;/*IE6*/
    
     _top:       expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
    
     document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
    
    }
    
    .STYLE1 {font-size: 12px}
        </style>
    

      

    <script type="text/javascript">
        //这是关闭弹出层的方法
        function closeCustomer() {
    
            document.getElementById("joinclub").style.display = 'none';
    
            //document.getElementById("bg123").style.display = 'none';
    
        }
        //这是弹出层的方法
        function join_club() {
             //主要是这句话控制弹出层。
            document.getElementById('joinclub').style.display = 'block';
        }
    
    </script>
    

      

     <%--进度条弹出窗口--%>
        <div class="tcck" id="joinclub" style="display:none">
            <table style="430px; height:7px;"  border="0" cellpadding="0" cellspacing="0"   >
                <tr style="background-color:white; color: #fff; padding-left: 2px; padding-top: 0px;
                         font-weight: bold; font-size: 12px;" >
    
                    <td><div align="right"><a href=JavaScript:; class="STYLE1" onclick="closeCustomer();">[关闭]</a>     </div></td>
    </tr>
                </table>
     <%--下面这些是弹出窗口里面的内容--%>
        <div id="progress1">
                <div class="percent"></div>
                <div class="pbar"></div>
                <div class="elapsed"></div>
            </div>
        <div ><h3 id="xzts"></h3></div>
    <%--以上这些是弹出窗口里面的内容--%>
    </div>
    

      

      

  • 相关阅读:
    怎样修改原型对象prototype
    怎样获取构造函数的名字
    怎样把实例对象当构造函数用
    怎样理解prototype对象的constructor属性
    怎样理解构造函数的原型对象prototype
    怎样给回调函数绑定this
    怎样绑定this
    怎样理解数组的空元素empty与undefined的区别
    怎样找出数组中的最大数值
    怎样调用对象的原生方法
  • 原文地址:https://www.cnblogs.com/zcwry/p/div_.html
Copyright © 2011-2022 走看看