IFrame位于经典ASP页面上,所有其他内容都以某种方式隐藏

IFrame位于经典ASP页面上,所有其他内容都以某种方式隐藏,iframe,asp-classic,Iframe,Asp Classic,我有一个已经存在的asp页面,我想添加一个IFrame。问题是,无论我在身体的哪个部位添加帧,超过该点的所有内容都不再显示。如果我取了一个已经存在的表并再次复制它,我会在屏幕上看到该表两次,但是如果我取了第二个表的内容并用IFrame替换它们,那么页面上该点以下的所有内容都将不可见。有人知道是什么导致了这种行为吗 </HEAD> <body style="font-size:12"> <form> <table width=5

我有一个已经存在的asp页面,我想添加一个IFrame。问题是,无论我在身体的哪个部位添加帧,超过该点的所有内容都不再显示。如果我取了一个已经存在的表并再次复制它,我会在屏幕上看到该表两次,但是如果我取了第二个表的内容并用IFrame替换它们,那么页面上该点以下的所有内容都将不可见。有人知道是什么导致了这种行为吗

</HEAD>
    <body style="font-size:12">
        <form>
 <table  width=50% align=center >
 <tr><td  align=center >

 <font  style="font-size:12px;BackGround-Color:yellow"> Your test results were successfully
mailed to <%=Request("MailTo") %></font>


 </td></tr></table>
 <%End IF %>

 <br />

 <table align=center><tr><td colspan="10"><input id="Button3" onclick="return ConfirmExit(<%=intTestRecordID%>)"
                            value="Go to Locker" type="button" name="btnButton"> &nbsp;&nbsp;
                      <input id="Button4" onclick="javascript:window.print()" value="Print Summary Report" type="button"
                            name="btnPrint">&nbsp;&nbsp;<input id="btnGoToEmail" onclick="javascript:document.location='#EmailReport'"
                        value="Email Report" type="button" name="btnButton"></td> </tr><br />



 </table>
    <br />

    <%=BuildReport(objTest,false) %>    

    <br />

<table align=center><tr><td colspan="10"><input id="Button1" onclick="return ConfirmExit(<%=tstID%>)"
                            value="Go to Locker" type="button" name="btnButton"> &nbsp;&nbsp;<input id="Button2" onclick="javascript:window.print()" value="Print Summary Report" type="button"
name="btnPrint"></td></tr></table>



        </form>
        <br />
        <a name="EmailReport"></a>
            <form method="POST" name="emailtestresults" action='?emailedresults=1&TestRecordID=<%=Request.querystring("TestRecordID")%>'>


    <table  style='BORDER-BOTTOM:lightgrey thin solid; BORDER-LEFT:lightgrey thin solid; font-size:12px; MARGIN:0px; BORDER-TOP:lightgrey thin solid; BORDER-RIGHT:lightgrey thin solid' cellpadding='2' cellspacing='4' width='55%' align='center'>
    <tr><td  >
    <B><%=ReplaceResourceDefault(GetResourceText("ScoreReportASP_msgCustomEmailResults1"),muREPLACE_TEST_TEXT)%></B>
    </td></tr>
    <!--ANP WR1309
    Send a copy of your <%'=lcase(muREPLACE_TEST_TEXT)%> results to yourself, your boss, your spouse, or anyone you
    want to impress...<p>
    To email your <%'=lcase(muREPLACE_TEST_TEXT)%> results, enter the email address
    and a brief message you want attached to the top of your <%'=lcase(muREPLACE_TEST_TEXT)%> results and click the OK button.
    -->
    <tr><td>
    <%=ReplaceResourceCustom(GetResourceText("ScoreReportASP_msgCustomEmailResults2"),"%%ZZ%%",lcase(muREPLACE_TEST_TEXT))%> 
    </td></tr>
    <tr><td>

    <b>Send Results to:</b><input type="text" size="30" name="mailto" value="<%=Session("EmailAddress")%>">

    </td></tr>
    <!-- ANP WR1309
    <strong>Message to Include with <%'=muREPLACE_TEST_TEXT%> Results:</strong><br>
    -->
    <tr><td>
<B><% Response.write ReplaceResourceDefault(GetResourceText("ScoreReportASP_msgCustomEmailResults4"),muREPLACE_TEST_TEXT) %>
</B><br />
    <textarea rows="8" name="Message" cols="55"></textarea>
    </td></tr>
    <tr><td>
    <%'ANP WR1309
    'DisplayComplexFormBtn "javascript:document.emailtestresults.submit();", "Email your " & lcase(muREPLACE_TEST_TEXT) & " results", "Email your " & lcase(muREPLACE_TEST_TEXT) & " results", 0, 0, "", "Email Results"
    DisplayComplexFormBtn "javascript:document.emailtestresults.submit();", ReplaceResourceCustom(GetResourceText("ScoreReportASP_msgCustomEmailResults5"),"%%ZZ%%",lcase(muREPLACE_TEST_TEXT)), ReplaceResourceCustom(GetResourceText("ScoreReportASP_msgCustomEmailResults5"),"%%ZZ%%",lcase(muREPLACE_TEST_TEXT)), 0, 0, "", GetResourceText("ScoreReportASP_msgCustomEmailResults6")    

    %>
    </td></tr>
    </table>


    </form>
    </body>
</HTML>

<script  language="javascript">
    function ConfirmExit(TestRecordId) {
        var blnOK = confirm("Please make sure you have printed or emailed your results before returning to the Learning Locker. Once you have left this page you will not be able to return.");
        if (blnOK == true) {

        window.location.href = "/lockerweb/mylocker.aspx?cptrid=" + TestRecordId; 
            return true;
        }

    }

</script>

您的测试结果成功
邮寄至





将结果发送到:
函数确认(TestRecordId){ var blnOK=confirm(“请确保在返回学习储物柜之前打印或通过电子邮件发送了结果。一旦离开此页面,您将无法返回。”); 如果(blnOK==真){ window.location.href=“/lockerweb/mylocker.aspx?cptrid=“+TestRecordId; 返回true; } }
如果我添加这个iFrame

            <iframe src="http://www.amazon.com" frameborder="No" width="100%" height="200" id="iFrame" vspace="10">


在页面上的任何位置,iframe下面的页面其余部分都将消失。如果我检查源代码,所有代码都在那里,只是不可见。

您需要关闭Iframe标记:

<iframe src="http://www.amazon.com" frameborder="No" width="100%" height="200" id="iFrame" vspace="10"></iframe>


您不会将iFrame添加到要在iFrame中显示的页面中。您可以在另一个页面上添加一个iFrame,以便包含包含的页面。你似乎误解了iFrame。如果框架本身没有任何HTML,它只加载一个外部Url.True。显示您的HTML,以便我们可以向您显示编辑的版本。我了解iFrame的工作原理,我正在尝试在我的页面中加载外部Url。我添加指向(示例)的iFrame,然后页面上iFrame下方的所有内容都消失了。如果我将第二个表复制到它的正下方,那么该表将显示两次。如果随后删除表中的内容并替换为iframe,所有内容都将消失。你能解释一下吗?同意-我没有看到紧跟在开放标签之后的封闭标签。我也同意-到目前为止,我是这个房间里最大的白痴。有时候你只需要一对新鲜的眼球。:)