W3C HTML 网页标准教程

HTML 布局

在网络上,随处都可以看到像报纸那样的格式化分栏。

HTML布局 - 使用表格

One very common practice with HTML, is to use HTML tables to format the layout of an HTML page.

A part of this page is formatted with two columns, like a newspaper page.

As you can see on this page, there is a left column and a right column.

This text is displayed in the left column.

An HTML <table> is used to divide a part of this Web page into two columns.

The trick is to use a table without 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.

同样的布局 - 添加了颜色

One very common practice with HTML, is to use HTML tables to format the layout of an HTML page.

A part of this page is formatted with two columns, like a newspaper page.

As you can see at this page, there is a left column and a right column.

An HTML <table> is used to divide a part of this Web page into two columns.

This text is displayed in the right column.

The trick is to use a table without 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.

收藏文章
表情删除后不可恢复,是否删除
取消
确定
图片正在上传,请稍后...
评论内容为空!
  • 评论
36人参与,11条评论
  • 最新评论
2022年9月26日 1:37 [湖南省长沙市网友]

杨同学小学生,

2021年11月15日 0:31
1 [安徽省网友]

夏雨是个大傻逼,吃屎的东西

夏宇是lj

2021年6月7日 1:44 [安徽省网友]
1 [安徽省网友]

夏雨是个大傻逼,吃屎的东西

2 不谢 [安徽省池州市网友]

???????

2021年6月7日 1:41 不谢 [安徽省池州市网友]
1 [安徽省网友]

夏雨是个大傻逼,吃屎的东西

2 可恶啊 [安徽省网友]

一吃一麻袋

3 ZHJjt [安徽省池州市网友]

66666666666666666666666666666666666666666666666666666666666666666666666

2021年6月7日 1:40 ZHJjt [安徽省池州市网友]
1 [安徽省网友]

夏雨是个大傻逼,吃屎的东西

2 可恶啊 [安徽省网友]

一吃一麻袋

66666666666666666666666666666666666666666666666666666666666666666666666

2021年6月7日 1:40 ZHJjt [安徽省池州市网友]
1 可恶啊 [安徽省网友]

我心如铁,坚不可摧 智勇双全,我心飞翔

傻不拉几的

2021年6月7日 1:40 不谢 [安徽省池州市网友]
1 [安徽省网友]

夏雨是个大傻逼,吃屎的东西

2021年6月7日 1:39 中也 [安徽省池州市网友]
1 可恶啊 [安徽省网友]

我心如铁,坚不可摧 智勇双全,我心飞翔

傻逼如你

2021年6月7日 1:38 可恶啊 [安徽省网友]

我心如铁,坚不可摧
智勇双全,我心飞翔

2021年6月7日 1:37 可恶啊 [安徽省网友]
1 [安徽省网友]

夏雨是个大傻逼,吃屎的东西

一吃一麻袋

2021年6月7日 1:36 [安徽省网友]

夏雨是个大傻逼,吃屎的东西

按钮 内容不能为空!
立刻说两句吧! 查看11条评论