本例演示:如何使用 标签。本例演示如何制作含有三份文档的框架结构,同时将他们混合置于行和列之中。边框可以移动。本例演示 noresize 属性。在本例中,框架是不可调整尺寸的。在框架间的边框上拖动鼠标,你会发现边框是无法移动的。本例演示如何制作导航框架。导航框架包含一个将第二个框架作为目标的链接列表。名为 "contents.htm" 的文件包含三个链接。本例演示如何创建内联框架(HTML 页中的框架)。本例演示两个框架。其中的一个框架设置了指向另一个文件内指定的节的链接。这个"link.htm"文件内指定的节使用 进行标识。本例演示两个框架。左侧的导航框架包含了一个链接列表,这些链接将第二个框架作为目标。第二个框架显示被链接的文档。导航框架其中的链接指向目标文件中指定的节。
HTML Iframe
添加 iframe 的语法
URL 指向隔离页面的位置。
Iframe - 设置高度和宽度
height 和 width 属性用于规定 iframe 的高度和宽度。
属性值的默认单位是像素,但也可以用百分比来设定(比如 "80%")。
实例
Iframe - 删除边框
frameborder 属性规定是否显示 iframe 周围的边框。
设置属性值为 "0" 就可以移除边框:
实例
使用 iframe 作为链接的目标
iframe 可用作链接的目标(target)。
链接的 target 属性必须引用 iframe 的 name 属性:
实例
HTML 4.01 快速参考
来自 W3School 的 HTML 快速参考。可以打印它,以备日常使用。
HTML Basic Document
Document name goes hereVisible text goes here
Text Elements
This is a paragraph
(line break)
(horizontal rule)
This text is preformatted
Logical Styles
This text is emphasized
This text is strong
This is some computer code
Physical Styles
This text is bold
This text is italic
Links, Anchors, and Image Elements
Send e-mailA named anchor:
Jump to the Useful Tips Section
Unordered list
- First item
- Next item
Ordered list
- First item
- Next item
Definition list
-
First term
- Definition Next term
- Definition
Tables
someheader | someheader |
---|---|
sometext | sometext |
Frames
Forms
value="Nixon" size="30" maxlength="50">
Apples
Bananas
Cherries
cols="20">
Entities
< is the same as <
> is the same as >
© is the same as ?
Other Elements
Text quoted from some source.
Address 1
Address 2
City