html页面规定用户输入,HTML基础(表单和输入,框架)

本例演示:如何使用 标签。d1cf9b3e5e0fc121a7744692c70dc0f5.png本例演示如何制作含有三份文档的框架结构,同时将他们混合置于行和列之中。边框可以移动。14a1b740f4f4069dc4d5b03422fcf20e.png本例演示 noresize 属性。在本例中,框架是不可调整尺寸的。在框架间的边框上拖动鼠标,你会发现边框是无法移动的。beb146d6801e17b8f94089ee8df152d0.png本例演示如何制作导航框架。导航框架包含一个将第二个框架作为目标的链接列表。名为 "contents.htm" 的文件包含三个链接。47cd1c848c3e93eace36c697db8bad91.png本例演示如何创建内联框架(HTML 页中的框架)。a0b665d15a8750578a66bf5a07582343.png本例演示两个框架。其中的一个框架设置了指向另一个文件内指定的节的链接。这个"link.htm"文件内指定的节使用 进行标识。4e69efb4120513ca132db875a3b6bc2d.png本例演示两个框架。左侧的导航框架包含了一个链接列表,这些链接将第二个框架作为目标。第二个框架显示被链接的文档。导航框架其中的链接指向目标文件中指定的节。a723e6a87792328b499ae846816af6f4.png

HTML Iframe

添加 iframe 的语法

URL 指向隔离页面的位置。

Iframe - 设置高度和宽度

height 和 width 属性用于规定 iframe 的高度和宽度。

属性值的默认单位是像素,但也可以用百分比来设定(比如 "80%")。

实例

52f0b8fddbe2703f36a89ae21f597c0e.png

Iframe - 删除边框

frameborder 属性规定是否显示 iframe 周围的边框。

设置属性值为 "0" 就可以移除边框:

实例

9a2537e0ebeec0b8c937346285a79099.png

使用 iframe 作为链接的目标

iframe 可用作链接的目标(target)。

链接的 target 属性必须引用 iframe 的 name 属性:

实例

W3School.com.cn

503c1d70649f6a840a7178be128a5965.png

HTML 4.01 快速参考

来自 W3School 的 HTML 快速参考。可以打印它,以备日常使用。

HTML Basic Document

Document name goes here

Visible 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

This is a Link

URL

alt="Alternate Text">

Send e-mailA named anchor:

Useful Tips Section

Jump to the Useful Tips Section

Unordered list

  • First item
  • Next item

Ordered list

  1. First item
  2. Next item

Definition list

First term
Definition
Next term
Definition

Tables

someheadersomeheader
sometextsometext

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值