webui表格相关操作.ppt

7.3.7 设置表格单元格边距 !-- 程序 7-11-- … table width=00 border= frame=hsides rules =all cellspacing= cellpadding= … /table 7.3.7 设置表格单元格边距 7.3.8 设置表格的水平对齐属性 ? 水平对齐 – 在水平方向上,可以设置表格的对齐方式为:居左、居 中、 居右。如果没特别进行设置,则默认为居左排列。 ? 基本语法: – table align= ” ” 7.4.1 行内容水平对齐 ? 基本语法: – tr align= ” ” … /tr !-- 程序 7-13- html head title 设定表格水平对齐 /title /head body table width=00 border= align=center caption 课程表 /caption tr align=center th 节次 /th th 星期一 /th th 星期二 /th th 星期三 /th th 星期四 /th 7.4.1 行内容水平对齐 th 星期五 /th tr tr align= ight td 第 12 节 /td td 体育 /td td 大学英语 /td td 高等数学 /td td 数据结构实验 /td tdWeb 开发 /td /tr tr !-- 表格第二行 -- td 第 34 节 /td td 大学英语 /td td 高等数学 /td td 数据结构 /td td 数据结构 /td tdWeb 开发实验 /td /tr trtd colspan= 适用时间: 2008~2009 第一学期 083007 班 /td/tr /table /body /html 7.4.1 行内容水平对齐 7.4.2 行内容垂直对齐 ? 基本语法: tr valign =” ”…/tr !-- 程序 7-14-- html head title 设定表格行内容垂直对齐 /title /head body table width=00 height=? border= align=center caption 课程表 /caption tr valign= op … tr 7.4.2 行内容垂直对齐 tr valign=ottom … /tr tr !-- 表格第二行 -- … /tr trtd colspan= 适用时间: 2008~2009 第一学期 083007 班 /td/tr /table /body /html 7.4.2 行内容垂直对齐 7.5 设置表格中某一单元格的属性 ? td 的属性用于设定表格中某一单元格的属性 7.5.1 设置单元格跨行 ? 跨行合并 – 单元格的 rowspan 属性可实现单元格的跨行合并(纵向 合并)。 ? 基本语法: – td rowspan= ” ” … /td 7.5.1 设置单元格跨行 !-- 程序 7-15-- html head title 设定跨行的表格 /title /head body table width=00 border= cellpadding= caption 课程表 /caption tr th 节次 /th th 星期一 /th th 星期二 /th th 星期三 /th th 星期四 /th

文档评论(0)

1亿VIP精品文档

相关文档