我的索引页面中有一个iFrame。此iFrame包含一个带有表单的aspx页面,其中包含runat=server
。iframe与aspx页面使页面停止呈现
由于一些奇怪的原因,我在iFrame之后添加的任何东西都没有呈现给页面。
我尝试添加文本,一个div,当我运行页面后没有任何内容被添加。
代码:
<body>
<asp:Panel ID="Panel1" runat="server" Height="80px">
<iframe name="LogoFrame" id="LogoFrame" src="asp/Logo.aspx"
scrolling="no"
style="border-style: hidden; padding: 0px; margin: 00px; width: 100%; height: 100%"
width="100%"/>
</asp:Panel>
<form id="MainMenu" method="post" runat="server">
<asp:Panel ID="Panel2" runat="server" Height="38px">
<table class="tableMenu" id="MainTable" style="BACKGROUND-COLOR: #e2eded" cellSpacing="0"
cellPadding="0" width="100%" border="0">
<tr class="trMenu2" vAlign="middle">
// Some other things below, including the closing of Panel2 and MainMenu form
当我运行和检查网页...
如果我删除的iFrame,该页面的其余部分正确呈现。
这是怎么回事?
是的,我以前做过。我忘了回答我自己的问题,但既然你已经做到了,谢谢:) – Phiter