Window.Open()正在更改Internet Explorer上的页面布局

问题描述 投票:3回答:3

我在asp.net中有一个名为Home.aspx的页面。它使用母版页,还具有一个正在调用的按钮:

Response.Write("<script> window.open('page2.aspx','_blank'); </script>")

结果:用page2.aspx打开新选项卡,如果返回到[[Home.aspx,则页面布局被修改,中央<div>移动到页面的左侧。] >我该怎么做才能解决这个问题?请记住,这仅在Internet Explorer上发生,Firefox可以正常工作!

非常感谢。

我在asp.net中有一个称为Home.aspx的页面。它使用一个母版页,还具有一个正在调用的按钮:Response.Write(“

window.open('page2.aspx','_ blank');

javascript html asp.net vb.net dom
3个回答
© www.soinside.com 2019 - 2024. All rights reserved.