码迷,mamicode.com
首页 > Web开发 > 详细

1_表格列的控制.html

时间:2015-06-01 20:51:36      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:表格列的控制

<!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=gb2312" />
<title>表格列的控制</title>
</head>

<body>
	<!--需求:要求表格的第三列和第八列显示红色-->
	<table border="1" bordercolor="black" cellpadding="7" cellspacing="0" width="70%" >
		<colgroup span="2"></colgroup><!--表格的第三列显示红色。col功能和colgroup一样-->
		<colgroup bgcolor=red></colgroup>
		<colgroup span="4"></colgroup><!--表格的第三列显示红色。col功能和colgroup一样-->
		<colgroup bgcolor=red></colgroup>
		<tr>
			<td>语文</td>
			<td>数学</td>
			<td>英语</td>
			<td>语文</td>
			<td>数学</td>
			<td>英语</td>
			<td>语文</td>
			<td>数学</td>
			<td>英语</td>
		</tr>
		<tr>
			<td>99</td>
			<td>89</td>
			<td>88</td>
			<td>99</td>
			<td>89</td>
			<td>88</td>
			<td>99</td>
			<td>89</td>
			<td>88</td>
		</tr>
		<tr>
			<td>68</td>
			<td>99</td>
			<td>100</td>
			<td>99</td>
			<td>89</td>
			<td>88</td>
			<td>99</td>
			<td>89</td>
			<td>88</td>
		</tr>
		
	</table>
</body>
</html>


1_表格列的控制.html

标签:表格列的控制

原文地址:http://1154179272.blog.51cto.com/10217799/1657150

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!