html and ASP 问题,进

来源:百度知道 编辑:UC知道 时间:2024/06/19 02:54:32
<iframe frameBorder="0" name="main" class="Temp" >
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">

</asp:contentplaceholder>
</iframe>

这是在ASP模板里的代码, 要让<iframe> 标签的宽度和高度100%显示,怎么写,Width="100%" Height="100%" 没有用,知道大大们快告诉我,很急啊

你这样定义iframe就行了
<iframe id="iframe1" name="iframe1" src="test.htm" onload="height=iframe1.document.body.scrollHeight" width="100%"></iframe>

首先说一下,这是C# ASP.NET的代码,而不是ASP的代码。

要修改IFRMAE的显示控制,请找到CSS代码中的TEMP!