日期:2014-05-20  浏览次数:20458 次

大家来帮忙看下..frame使用出错了..help
<%@   Page   Language= "C# "   AutoEventWireup= "true "   CodeFile= "index.aspx.cs "   Inherits= "index "   %>

<!DOCTYPE   html   PUBLIC   "-//W3C//DTD   XHTML   1.0   Transitional//EN "   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<html   xmlns= "http://www.w3.org/1999/xhtml " lang= "zh-CN "   xml:lang= "zh-CN "   >
<head   runat= "server ">
        <title> 无标题页 </title>
       
</head>
<body>
</body>
<frameset   rows= "100,* "   cols= "* "   frameborder= "yes "   border= "100 "   framespacing= "0 ">
<frame   src= "up.aspx "   name= "topFrame "   scrolling= "NO "   noresize= "noresize ">

    <frameset   rows= "* "   cols= "200,* "   framespacing= "0 "   frameborder= "yes "   border= "0 ">
        <frameset   rows= "100,* "   cols= "* "   framespacing= "0 "   frameborder= "yes "   border= "0 ">
        <frame   src= "leftup.aspx "   name= "leftupFrame "   scroling= "NO "   noresize= "noresize ">
        <frame   src= "left.aspx "   name= "leftFrame "   scrolling= "NO "   noresize= "noresize ">
        </frameset>
        <frameset   rows= "*,100 "   cols   = "* "   framespacing= "0 "   frameborder= "yes "   border= "0 ">
        <frame     src= "right.aspx "   name= "mainFrame ">
        <frame     src= "down.aspx "   name= "bottomFrame "   scrolling= "NO "   noresize= "noresize "   >
        </frameset>
</frameset>
<noframes   title= "noframes ">
<body> </body>   </noframes>
</html>


       
错误代码:
错误 6 WCAG   12.1   :   框架缺少说明性标题。 <frameset> 、 <frame>   或   <noframes>   没有包含说明性标题文本。请添加说明性标题   (title= "X ")。您还可使用“框架属性”对话框来添加标题。 C:\Documents   and   Settings\user\My   Documents\jar\new\frame\index.aspx 12

错误 22 验证   (XHTML   1.0   Transitional):   不支持元素“frameset”


还有个问题就是   元素noframes   和   html   两个都互相不嵌套,那怎么写?
<html   #%@^$^@!%$$#$#$>
<noframes> </noframes>
</html>     这么办么?     大哥大姐们...知道的告诉下..谢谢了..



------解决方案--------------------
将第二行试着改成

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd ">
------解决方案--------------------
去掉 <body> </body> 框架中没有body. 错误依旧是指?
------解决方案--------------------