您的位置:首页 > 运维架构

又是关于AjaxControlToolkit的ModalPopup的问题

2009-12-25 11:08 435 查看
版本:3.0.30930

问题:弹出的模式层不在页面正中间,而是在灰色背景的最下面,需要滚动页面才能看到(至少IE8下这样)

解决办法:修改AjaxControlToolkit源码,脚本文件是ModalPopupBehavior.debug.js

第129行:

   //this._foregroundElement.style.position = 'fixed';

修改为:
// position:fixed; does not work in IE in quirks mode, so need to set to absolute
if (Sys.Browser.agent == Sys.Browser.InternetExplorer && document.compatMode != "CSS1Compat")
this._foregroundElement.style.position = 'absolute';
else
this._foregroundElement.style.position = 'fixed';

完成后,更新ModalPopupBehavior.js文件即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: