我在使用 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/