一.框架

(frameset)
1.用<frameset></frameset>代替了<body></body>
2.rows设置行的占页面的百分比;cols设置列的所占百分比;*表示剩余的百分比;frameborder设置框架的边框(取值0/1)0–不显示边框1–在每个页面之间都显示边框;bordercolor设置边框颜色;framespacing表示框架与框架间保留的空白距离。
3.noresize设置禁止用户拖拉框架大小;scrolling设置滚动条是否显示;src路径连接到内容页面
4.用法例:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<frameset rows="30%,*,10%" frameborder="1" bordercolor="blue" framespacing="10">
<frame src="02.html" noresize="noresize" scrolling="no" />
<frameset cols="20%,70%,*">
<frame src="03.html" />
<frame src="01.html" noresize="noresize" scrolling="no"/>
<frame src="index.html" noresize="noresize" scrolling="no"/>
</frameset>
<frame src="03.html" noresize="noresize" scrolling="no"/>
</frameset>
</html>

二.内嵌
例:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="css/01.css"/>
</head>
<body>
<h1 align="center">个人简历</h1><!--标题-->
<form><!--表单-->
<table border="1" cellspacing="0" cellpadding="0" align="center"><!--表格-->
<tr align="center">
<td>姓名</td>
<td><input type="text" placeholder="觅知网"/></td><!--placeholder设置提示-->
<td>出生年月</td>
<td><input type="text"placeholder="1996.05"/></td>
<td rowspan="4">
<div id="div1"><img src="img/希望.jpg" width="180" height="90"/></div></td>
</tr><!--img插入图片-->
<tr align="center">
<td>名族</td>
<td><input type="text"placeholder="汉"/></td>
<td>政治面貌</td>
<td><input type="text" placeholder="中共党员"/></td>
</tr>
<tr align="center">
<td>电话</td>
<td><input type="tel" name="tel" maxlength="11" placeholder="13500135000"/></td>
<td>毕业院校</td>
<td><input type="text" placeholder="广州科技大学"/></td>
</tr>
<tr align="center">
<td>邮箱</td>
<td><input type="email" placeholder="2968218682@qq.com"/></td>
<td>学历</td>
<td><input type="text" placeholder="专科"/></td>
</tr>
<tr align="center">
<td>地址</td>
<td colspan="4"><iframe src="dizhi.html" noresize="noresize" scrolling="no" width="600" height="30" frameborder="0"></iframe></td>
</tr><!--iframe内嵌一个文件到单元格之中-->
<tr align="center">
<td>求职意向</td>
<td colspan="4"><iframe src="qiuzhiyixiang.html" noresize="noresize" scrolling="no" width="600" height="30" frameborder="0"></iframe></td>
</tr><!--noresize="noresize"用户无法改动拖拉边框大小-->
<tr>
<td>教育背景</td>
<td colspan="4"><iframe src="jiaoyubeijing.html" noresize="noresize" scrolling="no" width="600" height="80"frameborder="0"></iframe></td>
</tr><!--scrolling="no"设置滚动条不显示-->
<tr>
<td>实习经历</td>
<td colspan="4"><iframe src="shixijingli.html"noresize="noresize" scrolling="no" width="600" height="140"frameborder="0"></iframe></td>
</tr><!--frameborder="0"设置无边框-->
<tr>
<td>校内实践</td>
<td colspan="4"><iframe src="xiaoneishijian.html" noresize="noresize" scrolling="no" width="600" height="140"frameborder="0"></iframe></td>
</tr>
<tr>
<td>技能证书</td>
<td colspan="4"><iframe src="jinengzhengshu.html"noresize="noresize" scrolling="no" width="600" height="60"frameborder="0"></iframe></td>
</tr>
<tr>
<td>自我评价</td>
<td colspan="4"><iframe src="ziwopingjia.html"noresize="noresize" scrolling="no" width="600" height="50"frameborder="0"></iframe></td>
</tr>
</table>
</form>
</body>
</html>

注释:iframe可以设置宽width和高height

HTML+CSS教程(二)frameset框架和iframe内嵌的更多相关文章

  1. MapReduce教程(二)MapReduce框架Partitioner分区<转>

    1 Partitioner分区 1.1 Partitioner分区描述 在进行MapReduce计算时,有时候需要把最终的输出数据分到不同的文件中,按照手机号码段划分的话,需要把同一手机号码段的数据放 ...

  2. Python3.x:selenium获取iframe内嵌页面的源码

    Python3.x:selenium获取iframe内嵌页面的源码 前言 在一些网页中经常会看到ifrmae/frame标签,iframe是嵌入式框架一般用来在已有的页面中嵌入另一个页面,当一个元素在 ...

  3. 如何根据iframe内嵌页面调整iframe高宽续篇

    接着昨天的工作 如何根据iframe内嵌页面调整iframe高宽 来说,按照文章中说的第二种方法实现代码如下: 实现 A.com/detail/view 页面的iframe代码如下: <ifra ...

  4. 关于selenium自动化对iframe内嵌元素的处理

    今天上班闲来无聊,于是来练练自动化,结果碰上了可恶的iframe,楼主,以前也遇到过,但是一直也没搞懂怎么处理的,都是抄别人的代码,今天决定独立解决试试.首先先来认识什么是iframe,它就长下图这样 ...

  5. MetaBase使用iframe内嵌到Vue页面样式优化

    Matebase是一个开源,易上手的BI工具,这里不做太多介绍了. 官网地址:https://www.metabase.com/ 解决问题描述: 使用iframe内嵌Metabase公开链接之后,页面 ...

  6. 如何根据iframe内嵌页面调整iframe高宽

    问题来自于工作的实例,我的一个域名A的页面,有个iframe,它可能内嵌了另一个域名B的页面,也可能内嵌域名C的页面,但是呢,B和C的页面大小是不一样的,特别是高是不一样的高,那么我如何设置ifram ...

  7. iframe内嵌页面——跨域通讯

      <template> <div class="act-form"> <iframe :src="src" ref=" ...

  8. 弹出iframe内嵌页面元素到父页面并全屏化

    (注册博客好久了,一直没舍得添砖加瓦,主要是每次想写点东西的时候,随便搜一搜发现都比我总结的都要好,甚感尴尬,但是总是要开始的,所以这就是我的第一篇博客,也绝不会是最后一篇,废话不多说,直接入正题) ...

  9. 使用iframe内嵌PC网站实现高度自适应

    加个样式 <style> iframe { display: block; border: none; height: 90vh;/*设置高度百分比,一直调到只有一个滚动调为止*/ wid ...

随机推荐

  1. PHP7内核(四):生命周期之开始前的躁动

    上一章我们对PHP的源码目录结构有了初步了解,本章我们继续从生命周期的维度对PHP进行剖析. 一.概览 生命周期是什么呢?你可以把它看作执行过程,PHP的生命周期也就是它从开始执行到结束执行的过程. ...

  2. 潘粤明的《龙岭迷窟》到底怎么样?我用 Python 得出了一些结论!

    对于天下霸唱的鬼吹灯,相信很多小伙伴都知道,它可谓是国内盗墓寻宝系列小说的巅峰之作,最近得知该系列小说的<龙岭迷窟>部分被制作成了网剧,已经于 4 月 1 日开播了,主要演员潘粤明.姜超. ...

  3. iOS 状态栏显示/隐藏

    iOS 10为止,将在plist文件中将 View controller-based status bar appearance 设置为NO,就可以用UIApplication设置状态栏. 注意,要在 ...

  4. iOS 图片圆角性能

    通常设置圆角方式 imageView.clipsToBounds = YES; imageView.layer.cornerRadius = 50; 这样设置会触发离屏渲染,比较消耗性能.比如当一个页 ...

  5. iOS 预渲染加速图像显示

    使用 UITableView 时,发现滚动时的性能还不错,但来回滚动时,第一次显示的图像不如再次显示的图像流畅,出现前会有稍许的停顿感. 于是猜想显示过的图像肯定是被缓存起来了,查了下文档后发现果然如 ...

  6. iOS 项目发布

    一.Apple开发者账号 1.1 开发者账号类型 个人级 公司级 企业级 公司和企业的可多人协作. 在苹果的开发者平台登录后,可在 People 界面邀请其他人员协作开发,邀请的人需要注册一个 app ...

  7. 深入理解NIO(二)—— Tomcat中对NIO的应用

    深入理解NIO(二)—— Tomcat中对NIO的应用 老哥行行好,转载和我说一声好吗,我不介意转载的,但是请把原文链接贴大点好吗 Tomcat大致架构 先贴两张图大致看一眼Tomcat的架构 Tom ...

  8. 手写一个Promise/A+,完美通过官方872个测试用例

    前段时间我用两篇文章深入讲解了异步的概念和Event Loop的底层原理,然后还讲了一种自己实现异步的发布订阅模式: setTimeout和setImmediate到底谁先执行,本文让你彻底理解Eve ...

  9. ScrollViewer - 可用鼠标拖动滚动的列表框

    ScrollViewer添加附加属性: using System; using System.Collections.Generic; using System.Windows; using Syst ...

  10. ansible七种武器和json

                                                               ansible七种武器和json • 第一种武器 – ansible 命令,用于执 ...