html 双色表格样式设计
2016-06-25 15:42
381 查看
<!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>
<script src="jquery-1.8.3.js" ></script>
<style>
th{
background:#00676B;
color:#FF4500;
line-height:20px;
height:30px;
}
td{
padding 6px 11px;
color: #FF0000;
border:1px solid #95bce2;
vertical-align:top;
text-align: center;
td * {
padding 6px 11px;
}
tr.alt td{
background: #ecf6fc;
}
tr.over td{
background: #bcd4ec;
}
</style>
</head>
<body>
<center>
<table width="364" border="1" cellspacing="0" cellpadding="0" class="table" >
<thead>
<th>测试1</th>
<th>测试2</th>
<th>测试3/th>
</thead>
<tr>
<td>测试数据1</td>
<td>测试数据2</td>
<td>测试数据3</td>
</tr>
</table>
</center>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>双色表格</title>
<script src="jquery-1.8.3.js" ></script>
<style>
th{
background:#00676B;
color:#FF4500;
line-height:20px;
height:30px;
}
td{
padding 6px 11px;
color: #FF0000;
border:1px solid #95bce2;
vertical-align:top;
text-align: center;
td * {
padding 6px 11px;
}
tr.alt td{
background: #ecf6fc;
}
tr.over td{
background: #bcd4ec;
}
</style>
</head>
<body>
<center>
<table width="364" border="1" cellspacing="0" cellpadding="0" class="table" >
<thead>
<th>测试1</th>
<th>测试2</th>
<th>测试3/th>
</thead>
<tr>
<td>测试数据1</td>
<td>测试数据2</td>
<td>测试数据3</td>
</tr>
</table>
</center>
</body>
</html>
相关文章推荐
- 酷酷的CSS3三角形运用
- 酷酷的CSS3三角形运用
- Css转Sass、Css转Less在线工具
- Css文本框样式
- CSS权威指南-层叠
- CSS权威指南-继承
- CSS权威指南-特殊性
- CSS权威指南-伪元素选择器
- css块级元素居中
- border:0;和border:none;的区别
- css的几种引用方式
- CSS权威指南-链接伪类
- css3翻转后显示背部隐藏的元素的效果3D翻转效果- transform rotate backface-visibility
- div+css做出带三角的弹出框
- CSS权威指南-选择相邻兄弟元素
- 遮罩层——通过阴影弱化背景的四种方案
- CSS中的几种选择器
- CSS权威指南-属性选择器
- CSS权威指南-id选择器
- css总结