我看到了类似的问题,但jquery slimscroll在以下条件下在IE-9和IE-10中不能拖拽。请使用js-fiddle链接并在外部资源字段中添加给定的url来测试它。
//jsfiddle.net/rgmrw/11/
//cdnjs.cloudflare.com/ajax/libs/jquery/ 1.4.2/jquery.js
//code.jquery.com/ui/1.8.3/jquery-ui.js
它在IE-8和IE-11中运行良好。我试图找到一个解决方案,但没有得到任何解决方案。
更新jquery版本将是一个解决方案,但问题是,如果我们必须更新,我们必须在我们的项目中进行重大更改,我们已经没有时间了。因此,如果有人知道一个可选的解决方案来解决这个问题,请友好地将其发布。
谢谢。
发布于 2014-04-22 15:58:01
终于能找到答案了,希望这能对某些人有所帮助。如果我们使用低于1.8.6版本的jquery-ui.js,那么slimscroll在IE-9和IE-10中将不可拖动。如果您的项目实现不多,我建议您更改jQuery-UI.js版本,否则请在jquery-ui.js中进行以下更改。这对我很管用。
_mouseMove: function(event) {
// IE mouseup check - mouseup happened when mouse was out of window
if ($.browser.msie && !event.button) {
return this._mouseUp(event);
}作为
_mouseMove: function(event) {
// IE mouseup check - mouseup happened when mouse was out of window
if ($.browser.msie && !(document.documentMode >= 9) && !event.button) {
return this._mouseUp(event);
}或者,如果您使用的是精简文件,则可以执行以下更改
_mouseMove:function(a){if(c.browser.msie&&!a.button&&!(document.documentMode>=9))
仅限
!(document.documentMode >= 9)
部件应额外添加。
通过比较jquery-ui.js版本1.8.6和我的jquery-ui.js (1.8.3)找到了答案。
发布于 2014-08-07 22:00:31
按如下方式覆盖css类:
.slimScrollDiv {
overflow:visible !important;
}https://stackoverflow.com/questions/23197250
复制相似问题