我尝试使用打开一个新窗口
window.open("lookup.htm","lookupWin", "height=400,width=500,resizable=false");
它在 IE 中工作正常,但在 FF 中弹出窗口仍然可以调整大小。如何在 FF 中也禁用此调整大小?
最佳答案
从 mdc 中阅读这篇文章
窗口功能特点
可调整大小
If this feature is set to yes, the new secondary window will be resizable.
Note: Starting with version 1.4, Mozilla-based browsers have a window
resizing grippy at the right end of the status bar, this ensures that users can resize the browser window even if the web author requested this secondary window to be non-resizable. In such case, the maximize/restore icon in the window's titlebar will be disabled and the window's borders won't allow resizing but the window will still be resizable via that grippy in the status bar.
从 Firefox 3 开始,辅助窗口总是可以调整大小的
Bug 177838 - 使所有弹出窗口可调整大小,忽略 resizable=no
关于javascript - 我们如何禁止在 Firefox 中调整新弹出窗口的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1715201/