20170319 HTML5 表格常用属性

来源:互联网 发布:小米笔记本质量 知乎 编辑:程序博客网 时间:2024/05/05 06:19
<!--表格 table 表格的行:tr 列:td 表头:th  【常用属性】  1border:给表格添加边框。border属性增大时,只有外围框线增加,单元格的边框始终为1px  2bordercolor=”blue“边框颜色  3widthheight:表格的宽高  4cellingspacing:单元格单元格之间的间隙距离。cellspacing=“0”,只会使单元格间隙为0,,但不会合并边框线。  5Cellpadding:每个单元格中的内容与边框线的距离。  6align:表格在屏幕的左中右位置显示  7bgcolor:等同于style=“background-color”  8backgroundbackground=“img/computer.jpg”  --><!--trtd相关的属性】    1width/height:单元格的宽高    2bgcolor:单元格的背景颜色    3alignleft center right 单元格中的文字,水平对齐方式    4valigntop center bottom 单元格中的文字,垂直对齐方式    5nowrap=“nowrap” 单元格中文字不换行-->
0 0