跨多列的表元 <th colspan=#> <td colspan=#> colspan表示跨越的列数,例如colspan=2表示这一格的宽度为两个列的宽度。
跨多行的表元 <th rowspan=#> <td rowspan=#> rowspan所要表示的意义是指跨越的行数,例如rowspan=2就表示这一格跨越表格两个行的高度。
<html><head><title>表格TABLE</title></head></html>
<table border> <tr><th colspan=3>值班人员 </th> <tr><th>星期一</th> <th>星期二</th> <th>星期三</th> <tr><td>李强</td><td>张明</td><td>王平</td> </table>
<table border> <tr><th rowspan=2>值班人员</th> <th>星期一</th><th>星期二</th> <th>星期三</th></tr> <tr><td>李强</td><td>张明</td><td>王平</td></tr> </table>
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18