IE7下标签切换时如何防止页面刷新?

发布于 2024-08-21 12:13:19 字数 283 浏览 6 评论 0原文

对于特定网站(网络内部,以 XHTML 编码),IE6 中的行为是,每当窗口大小调整或恢复时,页面都会刷新。

由于 IE6 没有选项卡,我升级到了 IE7 - 但 IE7 的问题是,每当我们从一个选项卡切换到另一个选项卡时,它都会使活动选项卡的页面刷新,而且这种情况一直在发生。

经过一番谷歌搜索后,我找到了一个临时解决方案(在 IE 设置中禁用 Meta-Refresh 属性)。这在一定程度上解决了问题,但仍然会发生刷新。

有没有办法在标签切换时永久禁用页面刷新?

For a specific website (internal to network, coded in XHTML) the behavior in IE6 was that when ever the window is re-sized or restored the page refreshes.

Since IE6 doesn't have tabs I upgraded to IE7 - but the problem with IE7 is whenever we switch from one tab to another, its makes the active tab's page to refresh, and this happens all the time.

After googling a bit, I found a temporary solution, (to disable the Meta-Refresh property in IE settings). This has resolved the problem to some extent but still refreshes happens.

Is there a way to permanently disable the refreshing of page when tabs are switched ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青瓷清茶倾城歌 2024-08-28 12:13:19

在我看来,您的解决方案是使用以下内容:

<!--[if IE #]>
Special instructions for IE # here
Rather than on restored just leave your code to refresh in resize. 
Depending on what your page is doing you most likely may not need it to 
refresh on resize using IE8+.
<![endif]-->

否则我只会计划使用 IE8+ 作为所使用的浏览器,而不必担心它在 IE6 中的作用。

In my opinion your solution is to use something along the lines of:

<!--[if IE #]>
Special instructions for IE # here
Rather than on restored just leave your code to refresh in resize. 
Depending on what your page is doing you most likely may not need it to 
refresh on resize using IE8+.
<![endif]-->

Otherwise I would just plan on the IE8+ being the used browser and not worry about what it does in IE6 anymore.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文