Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 JavaScript 找出在 IE 浏览器中打开了多少个选项卡?
我正在尝试以编程方式调整 IE 的大小,如果 IE 打开了多个选项卡,resizeTo 将不起作用。
保存当前窗口大小,然后尝试调整大小。如果新的大小与旧的大小相同,那么要么失败,要么窗口恰好是正确的大小。您可以通过将其重新调整为不同的大小来区分两者。