我得到了Warnnig"元素框架集不受支持"和"元素框架不受支持"。我知道我必须改为iframe,但我不知道如何。 你能帮助我吗? 感谢
<%@ Page CodeBehind="Payroll.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="BM.Payslip.UserServices.EndUser.Payroll" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Title/title>
<meta http-equiv="CONTENT-TYPE" content="TEXT/HTML; CHARSET=WINDOWS-1255"/>
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE";/>
<meta http-equiv="PRAGMA" content="NO-CACHE";/>
<meta http-equiv="EXPIRES" content="now";/>
<meta http-equiv="cache-control" content="no-store";/>
<link href="CSS\StyleSheet.css" type="text/css" rel="stylesheet"/>
<%-- </link>--%>
<script type ="text/javascript" src="ClientSideScripts/JSUtils.js">
</script>
</head>
<%-- <body>--%>
<fraemset border="0" id="payroll" onload="javascript:ValidateNoFrames()" rows="85px,*" frameSpacing="0" frameBorder="0">
<frameset border="0" frameSpacing="0" frameBorder="0" cols="*,910px,*">
<frame src="xmlTry.aspx" id="Frame3" name="kk" noresize="noresize" >
<frame src="Main.aspx" id="HMain">
<frame src="xmlTry.aspx" id="Frame5" name="kk" noresize="noresize" >
</FRAMESET>
<FRAMESET border="0" frameSpacing="0" frameBorder="0" cols="*,910px,*">
<frame src="xmlTry.aspx" id="Frame2" name="kk" noresize="noresize" >
<frame src="MainPage.aspx" id="SlipArea" name="SlipArea" noresize="noresize" >
<frame src="xmlTry.aspx" id="Frame1" name="kk" noresize="noresize"/>
</FRAMESET>
</FRAMESET>
<%-- </body>--%>
</html>
&#13;
答案 0 :(得分:0)
<iframe src='xmlTry.aspx' id='xxx' > </iframe >
如果您尝试在页面中排列多个框架,可以使用多个iframe并使用css属性,如下所示:
<ol>
<li><iframe src="src1.aspx" style="float:left"></iframe></li>
<li><iframe src="src2.aspx"></iframe></li>
<li><iframe src="src3.aspx" style="float:right"></iframe></li>
</ol>