- 1
- 0
- 约3.26万字
- 约 51页
- 2022-07-15 发布于湖南
- 举报
Html 学习笔记
20.HTML 布局
在网络上,随处都可以看到像报纸那样的格式化分栏。
HTML- 布局 使用表格
One very common practice with HTML, is to An HTML table is used to divide a part of use HTML tables to format the layout of an this Web page into two columns.
HTML page.
The trick is to use a table without borders, A part of this page is formatted with two
and maybe a little extra cell-padding.
columns, like a newspaper page.
No matter how much text you add to this As you can see on this page, there is a left
page, it will stay inside its column borders.
column and a right column.
This text is displayed in the left column.
- 同样的布局 添加了颜色
One very common practice with HTML, is to An HTML table is used to divide a part of use HTML tables to format the layout of an this Web page into two columns.
HTML page.
This text is displayed in the right column.A part of this page is formatted with two
The trick is to use a table without borders, columns, like a newspaper page.
and maybe a little extra cell-padding.As you can see at this page, there is a left
No matter how much text you add to this column and a right column.
page, it will stay inside its column borders.实例
HTML将页面的一部分分割为表格的列是很容易的。为了您可以亲自尝试它,我们为您准备了这个简单的
例子。
html
body
table border=0 width=100% cellpadding=10
tr
td width=50% valign=topThis is some text. This is some text. This is some text. This is some text. This is some
text.
/td
td width=50% valign=topAnother text. Another text. Another text. Another text. Another text. Another text. Another
text.
/td
/tr
/table
/body
/html
HTML 框架21.
通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。实例
垂直框架
本例演示:如何使用三份不同的文档制作一个垂直框架。
html
frameset cols=25%,50%,25%
frame src=/example/html/frame_a.html
frame src=/example/html/frame_b.html
frame src=/example/html/frame_c.html
/frameset
/html
水平框架
本例演示:如何使用三份不同的文档制作一个水平框架。
html
frameset rows=25%,50%,25%
frame src=/example/html/frame_a.html
frame src=/example/html/frame_b.html
frame src=/example/html/frame_c.html
/frameset
/html
(可以在本页底端找到更多实例。)
框架
HTML通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。每
原创力文档

文档评论(0)