2
A
回答
3
我正在猜测一点点在这里,但你可以用得到窗口的大小:
var windowWidth = $(window).width();
var windowHeight = $(window).height();
所以,我会采取和传递价值的jQuery的对话框。
$(".dialog").dialog({ height: windowHeight, width: windowWidth });
0
变种DLG = $( “#对话”); //获取对话框容器。 //获取窗口尺寸。 var width = $(window).width(); var height = $(window).height();
// Provide some space between the window edges.
width = width - 50;
height = height - 150; // iframe height will need to be even less to account for space taken up by dialog title bar, buttons, etc.
// Set the iframe height.
$(dlg.children("iframe").get(0)).css("height", height + "px");
dlg.dialog({
modal: true,
height: "auto", // Set the height to auto so that it grows along with the iframe.
width: width
});
相关问题
- 1. Eclipse/Java非常小对话框窗口
- 2. 大写对话框弹出窗口
- 3. jquery消息窗口/对话框
- 4. 调用jQuery模态窗口对话框
- 5. jQuery的:关闭子对话框窗口
- 6. jQuery Mobile弹出窗口和对话框
- 7. ColdFusion的空白jQuery对话框窗口
- 8. MFC调整大小对话框和子窗口绘制问题
- 9. 在Sitecore中更改窗口对话框的大小?
- 10. jQueryUI对话框定位窗口调整大小
- 11. 调整JS模态对话框的浏览器窗口大小
- 12. jQuery对话框,如何绑定窗口大小调整事件,但仅当对话框存在时
- 13. 如何使popupwindow大小超过对话窗口大小?
- 14. 我可以使jQuery对话框的位置独立于窗口大小吗?
- 15. jquery对话框插件内容大小
- 16. 调整jQuery对话框的大小
- 17. Jquery对话框字体大小
- 18. 对话框jquery没有调整大小
- 19. jQuery对话框调整大小问题
- 20. jQuery窗口调整大小
- 21. jquery窗口调整大小
- 22. 调整窗口大小Jquery
- 23. jQuery窗口大小调整
- 24. 弹出窗口对话框
- 25. 创建对话框窗口
- 26. 在对话框窗口
- 27. jQuery的对话窗口
- 28. JQueryUI对话框大小
- 29. jQuery的:在对话框窗口中的文本框不工作
- 30. C++ MFC添加水平滚动条来调整窗口大小对话框
您正在使用jQuery库或jQuery的UI库,或两者兼而有之? – 2011-03-14 16:21:36