2020年9月10日:
css规则
1.继承
例:
<html>
<head>
<style type="text/css">
td{font-size:12pt}
p{color:red}
</style>
</hesd>
<body>
<table width="300" border="1" height="150">
<tr>
<td align="center">
<p>css规则</p>
</td>
</table>
</body>
</html>
<p>为最高级<td>
2.组合
例:td{font-size:12pt}
p1{font-size:12pt}
组合后
td,.p1{font-size:12pt}
3.层叠
在样式里定义过后,在表格属性中又定义一次
<html>
<head>
<style type="text/css">
red{color:#ff0000 limportant}
</style>
</hesd>
<body>
<table width="300" border="1" height="150">
<tr>
<td align="center" class="red">......</td>
</tr>
</table>
</body>
</html>