辽东学院第2讲HTML与CSS-(精品课件).pptVIP

  • 3
  • 0
  • 约1.4万字
  • 约 49页
  • 2018-10-14 发布于广西
  • 举报
表格的基本语法 table - 定义表格 tr - 定义表行 th/th - 定义表头 td/td - 定义表元(表格的具体数据) /table (1)表格尺寸设置 边框尺寸设置: table border=# 实例 表格尺寸设置: table border width=# height=# 实例 11、表格 (2)表格的标题 ??????????????? IE caption align=# ... /caption #=left, center, right caption valign=# ... /caption #=top, bottom valign=top is default. 实例 (3)表元间隙设置: table border cellspacing=# 表元内部空白设置: table border cellpadding=# 实例 表格_标题、间隙 (4)表格内文字的对齐/布局 tr align=# th align=# td align=# #=left, center, right tr valign=# th valign=# td valign=# #=top, middle, bottom, baseline 实例 (5)表格在页面中的对齐/布局 table align=left table align=left border table vspace=# hspace=# #=space value Nescape 实例 表格_对齐方式 (6)跨多行、多列的表元 跨多列的表元 th colspan=# 跨多行的表元 th rowspan=# 实例 (7)表格的分组显示(Structured Table) ?IE?????????????????? 按行分组 thead ... /thead - 表的题头(Header) tbody ... /tbody - 表的正文(Body) tfoot ... /tfoot - 表的脚注(Footer) 实例 表格_跨行(列)、分组 (8)表格的色彩? IE?? 表元的背景色彩和背景图象 th bgcolor=# th background=URL ???????????????????实例 #=rrggbb 16 进制 RGB 数码, 或者是下列预定义色彩名称。 表格边框的色彩 ???????????????????????? table bordercolor=# 实例 表格边框色彩的亮度控制 table bordercolorlight=# 实例 table bordercolordark=# 表格_色彩 (9)表格中边框的显示 ??????????????????IE? 显示所有 4 个边框 table frame=box 实例 只显示上边框 table frame=above 只显示下边框 table frame=below 只显示上、下边框 table frame=hsides 只显示左、右边框 table frame=vsides 只显示右边框 table frame=rhs 不显示任何边框 table frame=void 表格_边框 (10)表格中分隔线(Rules)的显示 ?? IE ?????????? 显示所有分隔线 table rules=all 实例 只显示组(Groups)与组之间的分隔线 table rules=groups 只显示行与行之间的分隔线 table rules=rows 只显示列与列之间的分隔线 table rules=cols 不显示任何分隔线 table rules=none 表格_分割线 CSS:Cascading Style Sheets(层叠样式表单),也叫样式表,可以设置文本、图像?,背景等网页属性。其中,不同的样式可

文档评论(0)

1亿VIP精品文档

相关文档