HTML高级教程的
HTML
高级教程
Source From W3School
Edited by Chandler Su
AIEN Institute SHOU 2011
HTML 布局
在网络上,随处都可以看到像报纸那样的格式化分栏。
HTML 布局 - 使用表格
One very common practice with HTML, An HTML
is to use HTML tables to format the part of this Web page into two
layout of an HTML page. columns.
A part of this page is formatted with The trick is to use a table without
two columns, like a newspaper page. borders, and maybe a little extra
cell-padding.
As you can see on this page, there
is a left column and a right column. No matter how much text you add to
this page, it will stay inside its
This text is displayed in the left
column borders.
column.
同样的布局 - 添加了颜色
One very common practice with HTML, An HTML
is to use HTML tables to format the part of this Web page into two
layout of an HTML page. columns.
A part of this page is formatted with This text is displayed in the right
two columns, like a newspaper page. column.
As you can see at this page, there The trick is to use a table without
is a left column and a right column. borders, and maybe a little extra
cell-padding.
No matter how much text you add to
this page, it will stay inside its
column borders.
实例
将HTML 页面的一部分分割为表格的列是很容易的。为了您可以亲自尝试它,我们为您准备了这个简单的
例子。
HTML 框架
通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。
实例
垂直框架
本例演示:如何使用三份不同的文档制作一个垂直框架。
水平框架
本例演示:如何使用三份不同的文档制作一个水平框架。
(可以在本页底端找到更多实例。)
框架
通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。每份HTML 文档称为一个框架,并且每
个框架都独立于其他的框架。
使用框架的坏处:
开发人员必须同时跟踪更多的HTML 文档
很难打印整张页面
框架结构标签(
) 框架结构标签(
)定义如