首页 / 更多教程 / div弹出层的效果带关闭按钮
div弹出层的效果带关闭按钮
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了div弹出层的效果带关闭按钮,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1951字,纯文字阅读大概需要3分钟。
内容图文
![div弹出层的效果带关闭按钮](/upload/InfoBanner/zyjiaocheng/1072/8826372f727343f197eb0604ce4753cd.jpg)
下面我做的这个是个进度条的弹出层
<style type="text/css"> #tuxiang { width: 57px; } /*div弹出框的css*/ .tcck { width: 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="width: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>
原文:http://www.cnblogs.com/zcwry/p/div_.html
内容总结
以上是互联网集市为您收集整理的div弹出层的效果带关闭按钮全部内容,希望文章能够帮你解决div弹出层的效果带关闭按钮所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。
来源:【匿名】