jQuery UI 对话框阻止 Google Chrome 中的窗口滚动条

标签 jquery jquery-ui google-chrome

我在使用 jQuery UI 对话框时遇到问题。当我在 jQuery 对话框中打开照片时,它会卡住窗口滚动条。我无法使用鼠标指针向上或向下移动页面。此问题仅存在于 Google Chrome 中。它在 Mozilla 和 Internet Explorer 中运行良好。
有没有人能解决这个问题?

最佳答案

我过去通过在初始化对话框之前执行以下操作修复了类似的故障:

$.ui.dialog.prototype._makeDraggable = function () {
    this.uiDialog.draggable({
        containment: false,
        handle: "div.ui-widget-header",
        cancel: "#dialogId"
    });
};

关于jQuery UI 对话框阻止 Google Chrome 中的窗口滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8267628/

相关文章:

jquery - AJAX 访问不受信任的 HTTPS 失败,没有 'do you want to proceed' 提示

javascript - Jquery cycle - 在不破坏缩略图寻呼机的情况下将图像包装在 div 标签中

javascript - 将 jquery ui 事件绑定(bind)到本地函数

jQuery Draggable Helper 停止自动删除

html - Chrome 中的表单 - 奇怪的 css 渲染

html - Firefox 图像 div 未显示(适用于 chrome)

css - Chrome 的 img 高度和最大宽度问题

javascript - 如何从外部文件运行函数作为表单的 Action ?

javascript - 页面刷新后 Web 应用程序在 Windows Phone 上中断

javascript - 单击按钮时防止 jquery ui 打开第二个对话框