- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
iframe 常用属性知识()
iframe 常用属性知识()
iframe 常用属性
- iframe id = fid src = width = 428 height = 30 marginheight = 0 frameborder = 0 scrolling = no vspace = 0
hspace = 0 marginwidth = 0 / iframe
/ * *
iframe 常用属性:
src - 引用链接地址
width - - 框架的宽度
height - - 框架的高度
frameborder - 定义了内容页的边框, 取值为 (1 | 0), 缺省值为1
marginwidth - 定义了框架中html文件显示的左右边界的宽度, 缺省值由浏览器决定
marginheight - 定义了框架中html文件显示的上下边界的矿度, 缺省值由浏览器决定
scrolling - 设置或获取框架是否可被滚动.
auto=自动调整
yes =有滚动条
no =无滚动条
vspace - 设置或获取对象的水平边距
hspace - 设置或获取对象的垂直边距
* /
var fid = document.getelementbyid (girl).
fid.scrollheight; / / 得到滚动条的高度
fid.scrollwidth; / / 得到滚动条的宽度
下面是浮动帧标记iframe的各项属性:
一、基本语法:
... / iframe iframe
浮动帧标记iframe必须成对出现, 即有开始标记 iframe , / iframe 就必须有结束标记 .
二、浮动帧标记iframe的属性:
1、文件位置:
语法: src = url
说明: url为嵌入的html文件的位置, 可以是相对地址, 也可以是绝对地址.
示例: iframe src = iframe.html
2、对象名称:
语法: name = #
说明: # 为对象的名称.该属性给对象取名, 以便其他对象利用.
示例: iframe src = iframe.html name = iframe1
3、id选择符:
语法: id = #
说明: 指定该标记的唯一id选择符.
示例: iframe src = iframe.html id = iframe1
4、容器属性:
语法: height = # width = #
说明: 该属性指定浮动帧的高度和宽度.取值为正整数 (单位为像素) 或百分数.
height: 指定浮动帧的高度;
width: 指定浮动帧的宽度.
示例: iframe src = iframe.html height = 400 width = 400)
5、尺寸调整:
语法: noresize
说明: ie专有属性, 指定浮动帧不可调整尺寸.
示例: iframe src = iframe.html noresize
6, border display:
Syntax: frameborder=0, 1
Description: this property specifies whether to display a floating frame border.
0: does not display the floating frame border;
1: display floating frame border.
Example: iframe src=, iframe.html, frameborder=0
iframe src=, iframe.html, frameborder=1
7, border thickness:
Syntax: border=#
Description: this property specifies the thickness of the floating frame border, which is a positive integer and 0, in pixels. In order to seamlessly combine floating frames with pages, border is generally equal to 0.
Example: iframe src=, iframe.html, border=1
8, border color:
Syntax: bordercolor=color
Description: this property specifies the color of the floating frame border. Color can be either RGB color (RRGGBB) or c
您可能关注的文档
- coreldraw题库(coreldraw题库).doc
- 图表统计在应用问题教学中的尝试(The attempt of chart statistics in the teaching of applied problems).doc
- 图解系列(Graphic series).doc
- 圆的面积---邱子珍(The area of the circle --- Qiu Zizhen).doc
- 土壤污染(soil pollution).doc
- 土建施工员应该知道的数据(The data that the builder should know).doc
- 土建管理(Civil Engineering Management).doc
- 土楼(Tulou).doc
- 土豆的营养价值(The nutritional value of potatoes).doc
- 圣典(Canon).doc
文档评论(0)