开发者社区 问答 正文

thickbox bug ,IE8下窗口位置溢出屏幕

screenshot
如上图所示,thickbox在IE8下窗口溢出,应该是thickbox本身的bug,不知道红薯发现了没?

展开
收起
a123456678 2016-07-05 10:41:20 1702 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 在定义 tb_pathToImage 下面加一行,如下

    // fixes the fact that ie7 now reports itself as MSIE 6.0 compatible
    $.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);

    2、修改tb_position() 方法

    把if条件改成如下:

    if ( !(jQuery.browser.msie6)) { // take away IE6

     ....

    }
    修改后,本地测试尚未发现任何问题...

    链接

    英文:thickbox-31-ie7-positioning-bug

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

    2019-07-17 19:51:15 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
问答标签:
问答地址:
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等