HTML构成表格的三对基本标签
构成表格的三对基本标签:
1. 表格标签:<table></table>
2. ⾏标签:<tr></tr>
3. 单元格标签:<td></td>
表格标签的属性:
1. 边框属性:border
2. ⽔平对齐⽅式的属性:align  left  center  right
3. 边框颜⾊属性:bordercolor
4. 背景颜⾊属性:bgcolor
5. 背景图⽚属性:background
6. 间距属性:cellspacing:单元格间距; cellpadding:内容与单元格之间的距离
7. 宽⾼属性:width    height
⾏标签的属性:
1. 背景颜⾊属性:bgcolor
2. ⽔平对齐⽅式属性:align    left  center  right
3. 垂直对齐⽅式属性:valign    top  center/middle    bottom
单元格标签属性:
1. 背景颜⾊属性:bgcolor
2. ⽔平对齐⽅式属性:align    left  center  right
3. 垂直对齐⽅式属性:valign    top  center/middle    bottom
4. 背景图⽚属性:background
5. 宽⾼属性:width    height
6. 跨⾏合并:rowspan
html表格内外边框颜
7. 跨列合并:colspan
<th></th>表头信息,和<td></td>的⽤法⼀样,都是包含在<tr></tr>⾥⾯,不同的是<th></th>⾥⾯的⽂字会进⾏加粗加⿊,⽽且会居中对齐格式。
caption: 定义表格标题

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。