【问题标题】:Draggable Background Js not working in ie8可拖动的背景 Js 在 ie8 中不起作用
【发布时间】:2015-06-03 09:12:26
【问题描述】:

我正在使用Draggable Background Js 来拖动背景图像,但它在 IE8 中不起作用,控制台显示

Unable to get property 'match' of undefined or null reference,

File: draggable_background.js, Line: 63, Column: 15.

小提琴:http://jsfiddle.net/nikhilvkd/uqcuqtxf/

有什么问题?我该如何解决这个问题?

【问题讨论】:

    标签: jquery html css internet-explorer-8 draggable


    【解决方案1】:

    嗯,您为 Draggable Background 库链接到的 Github 页面明确声明它仅与 IE9+ 兼容。

    这意味着你不会让它在 IE8 中工作。它依赖于 IE8 根本没有的浏览器功能。

    如果你真的需要支持 IE8,那么你将需要通过其他方式或使用其他库来实现此效果。

    【讨论】:

    • 似乎不太可能。它依赖于 IE8 不支持的 CSS background-size 属性。您可以尝试searching for a polyfill librarybackground-size 功能添加到IE8;那里有一些,但我不能保证这样的 hack 将如何与您正在使用的库一起工作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多