当前位置: 必赢官网 > web前端 > 正文

jquery实现弹出层完美居中效果-Web前端之家

时间:2019-11-23 03:52来源:web前端
function center{var windowWidth = document.documentElement.clientWidth;var windowHeight = document.documentElement.clientHeight; varpopupHeight = $; var popupWidth = $.css({ "position": "absolute", "top":(windowHeight-popupHeight)/2 $, "lef

function center{var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popupHeight = $; var popupWidth = $.css({ "position": "absolute", "top": (windowHeight-popupHeight)/2 $, "left": (windowWidth-popupWidth)/2 }); }

jquery实现弹出层完美居中效果复制代码 代码如下:showDiv;function showDiv;center.scroll{ center.resize{ center; }

编辑:web前端 本文来源:jquery实现弹出层完美居中效果-Web前端之家

关键词: 必赢官网