本文介绍了Web应用程序用户界面:使用框架集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Dreamweaver中使用ASP工作.在左框架中,不显示页面,而是显示其代码.这是代码,添加了第10帧和第11帧.他们是做什么的?

旧样本

I''m working in asp,in dreamweaver. In left frame, the page is not displaying, instead its code is displayed. Here is the code, frame 10 and 11 is added. What do they do?

Old sample

  <frameset rows="*,1 cols="163; framespacing=1; frameborder=yes; border=1 bordercolor=#CCCCCC">
    <frame src="page1.asp; name="leftFrame" scrolling="No" >
    <frame src="login.asp" name="mainFrame">
    <frame src="UntitledFrame-10.htm">
    <frame src="UntitledFrame-11.htm">
  </frameset>
</frameset>



修改后的示例从答案中移出



Modified sample moved from answer

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Frame page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="69,*" cols="*" framespacing="1" frameborder="yes" border="1" bordercolor="#CCCCCC">
  <frame src="main.asp" name="topFrame" scrolling="NO" noresize >
  <frameset rows="*,1" cols="163,*" framespacing="1" frameborder="yes" border="1" bordercolor="#CCCCCC">
    <frame src="side.asp" name="leftFrame" scrolling="No" >
    <frame src="login.asp" name="mainFrame">
    <frame src="UntitledFrame-10.htm">
    <frame src="UntitledFrame-11.htm">
  </frameset>
</frameset>
<noframes>
<body>
</body></noframes>
</html>

推荐答案

<frameset rows="20%, 80%" cols="30%, 60%" framespacing="1" frameborder="yes" border="1" bordercolor="#CCCCCC">



所有四个页面(由src定义的URL的属性)都应该存在.

有关更多详细信息,请阅读以下内容: http://htmlhelp.com/reference/html40/frames/frameset.html [ ^ ],例如,这: http://www.w3schools.com/tags/tag_frameset.asp [ ^ ].

(注意!关于使用框架的警告很多-您可以在该主题中找到很多帖子.我个人不在乎.)

祝你好运!

—SA



All four pages (URLs defined by src attributed) should exist.

For more detail, read this: http://htmlhelp.com/reference/html40/frames/frameset.html[^], and, for example, this: http://www.w3schools.com/tags/tag_frameset.asp[^].

(Attention! There are a lot of warnings against using frames -- you can find a lot of posts in the topic. I personally don''t care.)

Good luck!

—SA



<frame src="page1.asp; name="leftFrame" scrolling="No" >



看看您错过了双引号"page1.asp".



Check out you missed the double quote "page1.asp".


这篇关于Web应用程序用户界面:使用框架集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 15:10