jquery 弹出框居中显示
来源:互联网 发布:守望先锋画质优化设置 编辑:程序博客网 时间:2024/05/18 00:29
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>弹出确认框始终位于窗口的中间位置的测试</title><style type="text/css">.mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; opacity: 0.1; filter: alpha(opacity=10); z-index: 99; }.mess { position: absolute; width: 270px; height: 140px; border: 1px solid #e0e0e0; background: #ffffff; text-align: center; z-index: 101; }.mess_title{ margin:auto; background-color:#f6f0f3; height:50px; width:100%; line-height:50px;}.fontsize1{ font-size:12px;}.redcolor{ color:#ff0000;}.clickclose{ cursor:pointer;}.centerText{ line-height:25px; text-align:left; padding: 5px 0px 5px 0px;border-bottom:1px #e0e0e0 dotted;}.botttomText { text-align:right; line-height:30px; height:30px;}.botttomText a{ color:#ff6600;}</style><script type="text/javascript">$(document).ready(function() {var obj = $('.mess'); var screenWidth = $(window).width(), screenHeight = $(window).height(); //当前浏览器窗口的 宽高 var scrolltop = $(document).scrollTop();//获取当前窗口距离页面顶部高度 var objLeft = (screenWidth - obj.width())/2 ; var objTop = (screenHeight - obj.height())/2 + scrolltop; obj.css({left: objLeft + 'px', top: objTop + 'px','display': 'block'});$('.clickclose').click(function(){$('.mask').hide();$('.mess').hide();});});</script></head><body><div class="mask"></div><div class="mess"><div class="mess_title"><table width="100%" height="50" border="0" cellspacing="0" cellpadding="0" align="center" > <tr> <td width="210" align="left"> <b>温馨提示</b></td> <td align="center" class="fontsize1 clickclose">关闭</td> </tr></table></div><div class="fontsize1 centerText"><span class="redcolor"> 请尽快修改密码</span><br /> 你的密码存在安全风险,请尽快修改。</div><div class="fontsize1 botttomText"><a href="">现在修改》</a></div></div></body></html>
0 0
- jquery 弹出框居中显示
- 使用jQuery弹出层,信息框居中
- jquery的弹出提示框位置居中
- GetSaveFileName弹出文件选择框居中显示
- 窗口弹出居中显示
- 弹出窗口居中显示
- jquery创建水平居中垂直居中弹出框
- jquery弹出层完美居中
- jquery让弹出层居中
- jquery弹出层完美居中
- jquery 弹出框 当前页面 居中(有滚动条)
- 弹出框页面居中显示的两种方法
- 【库房】easyui的messager.show弹出框页面居中显示
- jQuery弹出Div窗口居中显示、滚动跟随、关闭按钮以及几秒后自动消失
- 弹出框动态居中
- 自定义居中弹出框
- model弹出框居中
- bootstrap弹出框居中
- 大小端模式
- UVA - 590 Always on the run
- 报表开发之birt与web项目整合
- jQuery-Validation-Bootstrap-tooltip demo
- C#中将double变量格式化为字符串,且保留小数点后面的全部位数
- jquery 弹出框居中显示
- 没有ASP.NET Web 服务模块
- 读《在前行中蜕变》有感(一)
- Linux学习笔记之基本命令四(输入输出管道邮件)
- SQL中自定义函数的存储过程的区别
- windows 环境下django环境的搭建
- 工作总结
- [Leetcode]Minimum Path Sum
- C语言中 有符号数、无符号数、整数溢出