HTML+CSS教程(二)frameset框架和iframe内嵌
一.框架
(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内嵌的更多相关文章
- MapReduce教程(二)MapReduce框架Partitioner分区<转>
1 Partitioner分区 1.1 Partitioner分区描述 在进行MapReduce计算时,有时候需要把最终的输出数据分到不同的文件中,按照手机号码段划分的话,需要把同一手机号码段的数据放 ...
- Python3.x:selenium获取iframe内嵌页面的源码
Python3.x:selenium获取iframe内嵌页面的源码 前言 在一些网页中经常会看到ifrmae/frame标签,iframe是嵌入式框架一般用来在已有的页面中嵌入另一个页面,当一个元素在 ...
- 如何根据iframe内嵌页面调整iframe高宽续篇
接着昨天的工作 如何根据iframe内嵌页面调整iframe高宽 来说,按照文章中说的第二种方法实现代码如下: 实现 A.com/detail/view 页面的iframe代码如下: <ifra ...
- 关于selenium自动化对iframe内嵌元素的处理
今天上班闲来无聊,于是来练练自动化,结果碰上了可恶的iframe,楼主,以前也遇到过,但是一直也没搞懂怎么处理的,都是抄别人的代码,今天决定独立解决试试.首先先来认识什么是iframe,它就长下图这样 ...
- MetaBase使用iframe内嵌到Vue页面样式优化
Matebase是一个开源,易上手的BI工具,这里不做太多介绍了. 官网地址:https://www.metabase.com/ 解决问题描述: 使用iframe内嵌Metabase公开链接之后,页面 ...
- 如何根据iframe内嵌页面调整iframe高宽
问题来自于工作的实例,我的一个域名A的页面,有个iframe,它可能内嵌了另一个域名B的页面,也可能内嵌域名C的页面,但是呢,B和C的页面大小是不一样的,特别是高是不一样的高,那么我如何设置ifram ...
- iframe内嵌页面——跨域通讯
<template> <div class="act-form"> <iframe :src="src" ref=" ...
- 弹出iframe内嵌页面元素到父页面并全屏化
(注册博客好久了,一直没舍得添砖加瓦,主要是每次想写点东西的时候,随便搜一搜发现都比我总结的都要好,甚感尴尬,但是总是要开始的,所以这就是我的第一篇博客,也绝不会是最后一篇,废话不多说,直接入正题) ...
- 使用iframe内嵌PC网站实现高度自适应
加个样式 <style> iframe { display: block; border: none; height: 90vh;/*设置高度百分比,一直调到只有一个滚动调为止*/ wid ...
随机推荐
- Jupyter Notebook自动补全
大多数程序员都非常熟悉不同的自动补全工具.然而,我注意到许多数据科学家还没有使用它.如果你是他们中的一员,是时候开始使用这个提高效率的工具了 什么是自动补全? 它是你的编程环境提供的一种功能,用于完成 ...
- VRRP协议:Virtual Route
VRRP协议:Virtual Route Redundancy Protocol虚拟路由冗余协议.是一种容错协议,保证当主机的下一跳路由出现故障时,由另一台路由器来代替出现故障的路由器进行工作,从而 ...
- Win10下 VSCode配置LaTex环境
------------恢复内容开始------------ 环境:win10 软件:Tex Live, VSCode ,Sumatra Tex Live官网下载速度很慢,所以推荐使用清华镜像下载链接 ...
- GCDAsyncSocket 笔记
https://www.dzliving.com/2019/03/26/gcdasyncsocket-%E7%9A%84%E5%B0%81%E8%A3%85%E4%B8%8E%E4%BD%BF%E7% ...
- 使用Git pull文件时,出现"error: RPC failed; curl 18 transfer closed with outstanding read data remaining"
error: RPC failed; curl transfer closed with outstanding read data remaining fatal: The remote end h ...
- SimpleITK 和 Nibabel 读取医学图像 nii 数据(2D显示)
SimpleITK 和 Nibabel 区别在于:(nii图像可以看成2维,也可以看成三维) SimpleITK读取数据是(X,Y,Z)显示,Nibabel读取图像是(Z,Y,X)显示,也就是Niba ...
- 《Three.js 入门指南》0 - 说明
本笔记,摘自:<Three.js 入门指南>一书 地址链接为:https://www.ituring.com.cn/book/miniarticle/58552 本书的前言摘录: 本书结构 ...
- 1005 Spell It Right (20 分)
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output e ...
- 01 微信小程序创建组件和使用组件
01 创建组件 遇见的困难 图标显示不出来,是因为你没有在组件的css中引入,所以显示不出来. 我一直以为是一个坑.结果是自己没有整清楚 01==>在page的同级目录下,创建一个文件夹,命名为 ...
- ssl & ike/ipsec
SSL/TLS