Vì vậy, tôi có một hộp thoại jQueryUi đơn giản không được căn giữa và không thể di chuyển được.Hộp thoại jQueryUi bị kẹt ở góc trên cùng bên trái (và không thể di chuyển)
Thông báo lỗi tôi nhận được trong giao diện điều khiển của tôi đề cập đến
jquery-ui-1.8.17.custom.min.js:36
để không cho tôi biết nhiều, chỉ là một số tham số truyền cho một số jQueryfunction không hợp lệ:
Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method 'curCSS' jquery-ui-1.8.17.custom.min.js:36
a.fn.position jquery-ui-1.8.17.custom.min.js:36
p.extend.each jquery-1.8.2.min.js:2
p.fn.p.each jquery-1.8.2.min.js:2
a.fn.position jquery-ui-1.8.17.custom.min.js:36
a.widget._position jquery-ui-1.8.17.custom.min.js:156
a.widget.open jquery-ui-1.8.17.custom.min.js:156
(anonymous function) jquery-ui-1.8.17.custom.min.js:17
p.extend.each jquery-1.8.2.min.js:2
p.fn.p.each jquery-1.8.2.min.js:2
a.widget.bridge.a.fn.(anonymous function) jquery-ui-1.8.17.custom.min.js:17
openMediaLibrary 6:456
onclick 6:187
Hộp thoại div trông giống như sau:
<div id="mediaLibrary" title="Bildgalleri">
<iframe width="950px" height="500px" src="{{ path('ImageGallery') }}" style="border:0;" /></iframe>
</div>
Hộp thoại được khởi tạo tại đây ...
$("#mediaLibrary").dialog({
height: 550,
width:980,
modal: true,
autoOpen: false,
position: { my: "center", at: "center" },
});
... và mở đây
$("#mediaLibrary").dialog("open");
Side lưu ý : bạn đóng iframe của mình hai lần: '' –
thử sử dụng thư viện jquery ui mới nhất – Swarne27
phiên bản mới đã thực hiện mẹo, cảm ơn! –