IE7中的window.open实现窗口可调整大小和显示滚动条
请看下面的代码段,在IE7中执行后弹出的代码是什么样的呢?
测试结果如下,可以发现窗口大小不能调整,并且没有显示滚动条。

记得IE6时,窗口的大小可以改变且滚动条也是默认显示的。看MSDN文档,resizable和scrollbars都是默认为yes的。(难道是未更新到IE7)
| resizable = { yes | no | 1 | 0 } | Specifies whether to display resize handles at the corners of the window. The default is yes.
Internet Explorer 7. resizable = { no | 0 } disables tabs in a new window. |
| scrollbars = { yes | no | 1 | 0 } | Specifies whether to display horizontal and vertical scroll bars. The default is yes. |
IE7中要调整窗口大小和显示滚动条,应该增加resizable=yes和scrollbars=yes,如下
结果如下图所示

浙公网安备 33010602011771号