Skip to content

thickbox在IE6,IE7,IE8下窗口不在中间的bug修复

曾经在这篇文章中介绍了在下IE7 thickbox3.1窗口位置溢出窗口的bug,这次又发现了IE8下同样的问题,thickbox弹出的窗口不在浏览器中间,而在偏下位置,一部分被状态栏遮挡了。thickbox作者貌似已经不再更新了,只能大家想想办法,如果要修复可以按照如下方法:

在thickbox代码第 16行更改如下:
$.browser.msie6 =
$.browser.msie
&& /MSIE 6\.0/i.test(window.navigator.userAgent)
&& !/MSIE 7\.0/i.test(window.navigator.userAgent)
&& !/MSIE 8\.0/i.test(window.navigator.userAgent);

如果你是在懒得修改代码,你可以直接下载我修改后的代码替换原来的thickbox.js来使用:

thickbox.patch.js

thickbox bug(3)thickbox ie8(14)thickbox(12)Thickbox IE7(15)thickbox ie6(15)thickbox中文(1)thickbox iframe bug(1)thickbox 中文(1)navigator.useragent ie8(2)thickbox 窗口位置(1)ie6 thickbox(3)thick box(1)thickbox ie 7(1)ie8 iframe 遮挡(1)修改IE8 UserAgent(1)

Share in Google Reader Share in Google Reader 分享到 FriendFeed 分享到 FriendFeed 推荐到豆瓣 推荐到豆瓣 分享到 Twitter 分享到 Twitter

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*