突然发现需要些小清新的配色。
<!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>table</title>
<style type="text/css">
table{
width:300px;
border-collapse: collapse;
border-spacing: 0;
border:#C8E6F1 solid 1px;
}
.cntLeft{
border-right: 1px solid #C8E6F1;
border-bottom: 1px solid #C8E6F1;
color: #1783C3;
width:140px;
}
tr:nth-child(even) {
background: #EBF6F8;
border:#C8E6F1 1px solid;
}
tr:nth-child(odd) {
background: #FFF;
}
</style>
</head>
<body>
<table>
<tr>
<td class="cntLeft"> </td>
<td> </td>
</tr>
<tr>
<td class="cntLeft"> </td>
<td> </td>
</tr>
<tr>
<td class="cntLeft"> </td>
<td> </td>
</tr>
</table>
</body>
</html>
Run Code:
<!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>table</title>
<style type="text/css">
table{
width:300px;
border-collapse: collapse;
border-spacing: 0;
border:#C8E6F1 solid 1px;
}
.cntLeft{
border-right: 1px solid #C8E6F1;
border-bottom: 1px solid #C8E6F1;
color: #1783C3;
width:140px;
}
tr:nth-child(even) {
background: #EBF6F8;
border:#C8E6F1 1px solid;
}
tr:nth-child(odd) {
background: #FFF;
}
</style>
</head>
<body>
<table>
<tr>
<td class="cntLeft"> </td>
<td> </td>
</tr>
<tr>
<td class="cntLeft"> </td>
<td> </td>
</tr>
<tr>
<td class="cntLeft"> </td>
<td> </td>
</tr>
</table>
</body>
</html>