Web应用程序用户界面:使用框架集 [英] Web application user interface: using frameset

查看:123
本文介绍了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>

推荐答案

您1)违反了XML结构(甚至是HTML),2)未能为所有4个HTML页面定义布局.由于布局无效,您只能在顶部看到第一页"page1.asp".

将第一个开始标签替换为以下内容:

You 1) violated XML structure (and even HTML), 2) failed to define layout for all 4 HTML pages. Because of invalid layout you could only see first page "page1.asp" on top.

Replace first opening tag with the following:

<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 [



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


首先,您需要更正HTML代码示例,因为它包含不成对的引号.
关于您为什么看到代码的问题是您的IIS可能未配置为运行ASP脚本.请为此检查您的IIS配置.

最好的问候,
曼弗雷德(Manfred)
First of all you need to correct your HTML code sample as it contains unpaired quotes.
Regarding your question as to why you are seeing code is that your IIS probably isn''t configured to run ASP scripts. Please check your IIS configuration for that.

Best Regards,
Manfred


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



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



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


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆