这个问题搞得我头大,并且在查过百度后各位大佬给出的解释我都不能理解,应该是我太白的原因,希望我写的能好理解。

下面文章窗口1、2、3,在代码里分别为chuangkou、chuangkou1、chuangkou2.

  下面是我创建的一个及其简易html框架结构:

制作这个网页需要八个html文件,分别是定义框架的文件:

<!DOCTYPE html>
<html>
<head><title>宾馆后台操作系统</title></head>

<frameset rows="30%,*" frameborder="1" borde="5" bordercolor="#446677">
<frame src="/application/index/view/index/guanli.html" name="chuangkou" scrolling="aulo" noresize>
<frameset cols="30%,70%">
<frame src="/application/index/view/index/zhufang.html" name="chuangkou1" scrolling="aulo" noresize>
<frame src="/application/index/view/index/afangjian.html" name="chuangkou2" noresize>

</frameset>

</frameset>
</html>

这段代码将网页分为三个部分我分别给他起的名字叫做name="chuangkou";name="chuangkou1";name="chuangkou2",也就是上面代码中加粗的代码:窗口、窗口1、窗口2.

下面是顶部选项窗口代码:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css" media="screen">
p{font-size:30px;}
</style>
</head>
<body>
<font color="blue" align="center"><h1>宾馆后台管理系统</h1></font><br><br>
<p align="center">
<a href="/application/index/view/index/zhufang.html" target="chuangkou1">住房查询</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/application/index/view/index/xiaofei.html" target="chuangkou1">消费查询</a>
</p>
</body>
</html>

这段代码是顶部菜单栏也就是起名为name="chuangkou"的部分,标签<a>的住房查询和消费查询target的位置是第二个窗口的位置,可以理解为target是通道,当我们点击住房查询时,"zhufang.html"内的A区房间、B区房间的选项,也就到了我们要到的终点站chuangkou1的位置。

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<a href="/application/index/view/index/afangjian.html" target="chuangkou2">A区房间</a><br>
<a href="/application/index/view/index/bfangjian.html" target="chuangkou2">B区房间</a>
</body>
</html>

上面这段代码是窗口点击住房信息后的代码。

当我们点击A区房间后“afangjian.html”的信息就通过target进入到chuangkou2.

“afangjian.html”代码如下

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p>这是A区房间</p>
<p>这是A区房间</p>
<p>这是A区房间</p>
<p>这是A区房间</p>
<p>这是A区房间</p>
<p>这是A区房间</p>
<p>这是A区房间</p>
</body>
</html>

剩余的消费查询及B区房间的查询同理。

附其他代码

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p>这是B区房间</p>
<p>这是B区房间</p>
<p>这是B区房间</p>
<p>这是B区房间</p>
<p>这是B区房间</p>
<p>这是B区房间</p>
<p>这是B区房间</p>
</body>
</html>

消费查询代码

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<a href="/application/index/view/index/paomian.html" target="chuangkou2">泡面</a><br>
<a href="/application/index/view/index/yinliao.html" target="chuangkou2">饮料</a>
</body>
</html>

泡面代码

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
<p>这是泡面消费</p>
</body>
</html>

饮料代码

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
<p>这是饮料消费</p>
</body>
</html>

html中<frameset>标签,框架结构各窗口的父级菜单子级菜单关系的更多相关文章

  1. 【转】vim中多标签和多窗口的使用

    原文:https://my.oschina.net/kutengshe/blog/464602 ---------------------------------------------------- ...

  2. HTML中<frameset>标签不显示的问题

    啥都不说,先上代码 <html> <head> <title>index</title> <meta content = 'text/html'; ...

  3. vim中多标签和多窗口的使用

    用vim进行编辑的时候常常因为要编辑多个文件或者是编辑一个文件要参考其他文件而烦恼,这里介绍两种方法: 1.多标签 直接在编辑的时候输入: vim -p 要编辑的文件名 如vim -p * 就是编辑当 ...

  4. Jquery获取iframe子/父窗口中的标签

    获取子窗口中的标签: $("#id",document.frames('iframename').document); 获取父窗口中的标签: $('#id', parent.doc ...

  5. vim中project多标签和多窗口的使用

    1.打开多个窗口 打开多个窗口的命令以下几个: 横向切割窗口 :new+窗口名(保存后就是文件名) :split+窗口名,也可以简写为:sp+窗口名 纵向切割窗口名 :vsplit+窗口名,也可以简写 ...

  6. 网页中<a>标签新窗口和location.href 新窗口打开

    在网页制作过程中,经常遇到新窗口打开,一般是a超级链接或者location.href 新窗口打开形式,下面分别讲述两种之间的不同方式 1,a标签 新窗口 添加属性 target="_blan ...

  7. jsp页面中frameset的使用方法

    frame,是网页开发必须掌握的知识.例如后台架构.局部刷新,页面分割,都是frame的用途表现,尤其是后台页面制作,使用frame会给用户带来非常舒适的使用感受. frame知识点包括(frames ...

  8. 区别CSS中display:box;inline;none以及HTML中 <frame> 标签<table> 标签的 frame 属性

    区别display:box:display:inline:display:none三者的不同 display:block的特点是: block是Display默认的值.总是在新行上开始:该对象随后的内 ...

  9. frameset标签设计页面

    重要事项:不能将 <frameset></frameset> 标签放在<body></body> 标签里.且 HTML5 已经不支持 frameset ...

随机推荐

  1. Java中RunTime.getRunTime().addShutdownHook用法

    今天在阅读Tomcat源码的时候,catalina这个类中使用了下边的代码,不是很了解,所以google了一下,然后测试下方法,Tomcat中的相关代码如下: Runtime.getRuntime() ...

  2. 【转载】关于DBUtils中QueryRunner的一些解读

    前面已经有文章说了DBUtils的一些特性, 这里再来详细说下QueryRunner的一些内部实现, 写的有错误的地方还恳请大家指出. QueryRunner类 QueryRunner中提供对sql语 ...

  3. eas之常用源码整理

    //查看是否有相关权限 boolean hasAllotPermission=         PermissionFactory.getRemoteInstance().hasFunctionPer ...

  4. HDU 4405 Aeroplane chess(概率dp,数学期望)

    题目 http://kicd.blog.163.com/blog/static/126961911200910168335852/ 根据里面的例子,就可以很简单的写出来了,虽然我现在还是不是很理解为什 ...

  5. dup、文件锁、库函数、函数调用(day07)

    一.lseek()重新定位文件的读写位置. #include <sys/types.h> #include <unistd.h> off_t lseek(int fd, off ...

  6. 使用Linux自带的命令logrotate对Nginx日志进行切割

    说明: Nginx安装目录:/usr/local/nginx/Nginx日志目录:/var/log/nginx/error/*.log /var/log/nginx/access/w1/*.log / ...

  7. Git 基础教程 之 Git 安装 (windows)

    一,安装Git,访问下面网址进行下载 https://www.git-scm.com/download/ 或者 https://pan.baidu.com/s/19imFBVHA2Yibmw1dyza ...

  8. 【ZOJ 4067】Books

    [链接] 我是链接,点我呀:) [题意] [题解] 统计a中0的个数cnt0 然后m减去cnt0 因为这cnt0个0是一定会取到的. 如果m==0了 那么直接找到数组中的最小值mi 输出mi-1就好 ...

  9. MySQL 存储过程的异常处理

    mysql> mysql> delimiter $$ mysql> mysql> CREATE PROCEDURE myProc     ->     (p_first_ ...

  10. Spring boot 前后台分离项目 怎么处理spring security 抛出的异常

    最近在开发一个项目 前后台分离的 使用 spring boot + spring security + jwt 实现用户登录权限控制等操作.但是 在用户登录的时候,怎么处理spring  securi ...