其实class属性的值对应的就是你定义的css的名字,它和class的属性值相对应。
例如:<td class="t1"></td>
<style type="text/css">
.t1 {
font-size: 12px;//字体大小
line-height: 22px;//文本行高
color: #000000;//文本颜色
margin: 6px;//边界
padding: 6px;//填充(文本与边界的距离)
border-bottom-width: 1px;//底部边框宽度
border-bottom-style: solid;//底部边框样式为实线
border-bottom-color: #CCCCCC;//底部边框颜色
}
</style>
class属性一般都是ID,这个ID都是调用前边的属性标签用的,只要找到相对应的标签代码就可以了,一般标准形式是class=“id号”
比如这个在调用的时候就会写代码:<td class="t1" > </td>