1、多表头表格代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>多表头表格</title>
<style type="text/css">
   body{
	   width:98%;
	   height:100%;
	   font-size:12px;
	   background-color:#FCF;
	   text-align:center;
   }
   #tab{
	   width:100%;
	   height:100%;
	   font-size:12px;
	   font-family:Verdana, Geneva, sans-serif Georgia, "Times New Roman", Times, serif;
	   font-weight:bolder;
	   background-color:#9F0;
   }
</style>
</head>

<body>
   <table id="tab" cellpadding="1" cellspacing="1" border="1">
      <tr>
        <th rowspan="2">序号</th>
        <th colspan="2">王五</th>
        <th colspan="2">李四</th>
        <th colspan="2">孙传</th>
        <th colspan="2">胡平</th>
        <th rowspan="2">合计</th>
      </tr>
      <tr>
        <th>语文</th>
        <th>数学</th>
        <th>语文</th>
        <th>数学</th>
        <th>语文</th>
        <th>数学</th>
        <th>语文</th>
        <th>数学</th>
      </tr>
      <tr>
        <th>1</th>
        <th>78</th>
        <th>96</th>
        <th>67</th>
        <th>98</th>
        <th>88</th>
        <th>75</th>
        <th>94</th>
        <th>69</th>
        <th> </th>
      </tr>
      <tr>
        <th>2</th>
        <th>89</th>
        <th>68</th>
        <th>77</th>
        <th>87</th>
        <th>84</th>
        <th>76</th>
        <th>71</th>
        <th>87</th>
        <th> </th>
      </tr>
      <tr>
        <th>3</th>
        <th>75</th>
        <th>78</th>
        <th>89</th>
        <th>74</th>
        <th>65</th>
        <th>68</th>
        <th>98</th>
        <th>90</th>
        <th></th>
      </tr>
      <tr>
        <th>4</th>
        <th>79</th>
        <th>89</th>
        <th>65</th>
        <th>62</th>
        <th>64</th>
        <th>87</th>
        <th>97</th>
        <th>91</th>
        <th></th>
      </tr>
      <tr>
        <th>5</th>
        <th>89</th>
        <th>96</th>
        <th>67</th>
        <th>76</th>
        <th>74</th>
        <th>84</th>
        <th>67</th>
        <th>81</th>
        <th></th>
      </tr>
      <tr>
        <th>6</th>
        <th>94</th>
        <th>90</th>
        <th>97</th>
        <th>74</th>
        <th>62</th>
        <th>81</th>
        <th>78</th>
        <th>78</th>
        <th></th>
      </tr>
      <tr>
        <th>7</th>
        <th>78</th>
        <th>89</th>
        <th>77</th>
        <th>87</th>
        <th>45</th>
        <th>86</th>
        <th>77</th>
        <th>98</th>
        <th></th>
      </tr>
      <tr>
        <th>8</th>
        <th>65</th>
        <th>67</th>
        <th>94</th>
        <th>68</th>
        <th>87</th>
        <th>69</th>
        <th>78</th>
        <th>68</th>
        <th></th>
      </tr>
      <tr>
        <th>9</th>
        <th>86</th>
        <th>98</th>
        <th>87</th>
        <th>87</th>
        <th>65</th>
        <th>78</th>
        <th>98</th>
        <th>79</th>
        <th></th>
      </tr>
      <tr>
        <th>10</th>
        <th>88</th>
        <th>75</th>
        <th>77</th>
        <th>97</th>
        <th>97</th>
        <th>77</th>
        <th>70</th>
        <th>87</th>
        <th></th>
      </tr>
   </table>
</body>
</html>

2、运行结果

最新文章

  1. 用R做逻辑回归之汽车贷款违约模型
  2. 显示或隐藏div
  3. JS~~~ 前端开发一些常用技巧 模块化结构 &amp;&amp;&amp;&amp;&amp; 命名空间处理 奇技淫巧!!!!!!
  4. 【Asphyre引擎】今天终于把精灵demo基本改好了。
  5. The Cow Lexicon
  6. 利用Apriori算法对交通路况的研究
  7. Android项目svn代码管理问题
  8. pyhon MySQLdb查询出来的数据设置为字典类型
  9. 用lisp来让计算机学会写作
  10. AI 人工智能 探索 (六)
  11. 2018/1/15 JAVA多线程相关
  12. Delphi 7连接MySql 5.5.15(转)
  13. Navicat Premium 最新版本12.1.16-64bit 完美破解,亲测可用!
  14. CentOS7中安装MySQL5.7
  15. drand48 等 随机数生成函数
  16. python的ws库功能,实时获取服务器ws协议返回的数据
  17. hdu4614 Vases and Flowers 线段树
  18. java.lang.IllegalStateException: Zip File is closed
  19. Glide的用法
  20. 从cpu负载到jstack分析线程状态

热门文章

  1. typedef如何显示变量类型名
  2. 完全卸载SQL Server 2008r2
  3. VS工程中的Windows.h
  4. spring中Bean对象的生命周期
  5. 导入一个新项目需要注意的几大问题(jdk1.6+eclipse4.4+tomcat6)
  6. Python元编程
  7. JBOD
  8. jdk环境变量配置及配置原因
  9. Spring整合JMS(二)——三种消息监听器
  10. BZOJ 3295: [Cqoi2011]动态逆序对 [CDQ分治]