css和html?
发布网友
发布时间:2022-05-01 17:00
我来回答
共3个回答
热心网友
时间:2022-05-13 02:37
<!DOCTYPE html>
<html>
<head></head>
<style >
table {
border-collapse: collapse;
border-spacing: 0cm;
}
td {
border: 1px solid #000000;
width: 100px;
height: 20px;
}
.tr_style1 {
background-color: #cccccc;
}
.tr_style2 {
color: green;
}
.td_first {
font-size: 35px;
}
.td_end {
font-weight: bold;
}
</style>
<body>
<table>
<tr><td class="td_first">begin</td><td></td><td></td><td></td></tr>
<tr class="tr_style1 tr_style2"><td>s</td><td>s</td><td>s</td><td>s</td></tr>
<tr><td></td><td></td><td></td><td></td></tr>
<tr class="tr_style1"><td></td><td></td><td></td><td class="td_end">end</td></tr>
</table>
</body>
</html>
热心网友
时间:2022-05-13 03:55
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Tblae</title>
<style>
table{
border-collapse: collapse;
}
table td{
border: 1px solid #000;
}
table tr:nth-child(odd){
background-color: #ddd;
}
table td:first-child{
font-size: 35px;
}
table td:last-child{
font-weight: bold;
}
table tr td:nth-child(2){
color: green;
}
</style>
</head>
<body>
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>
</body>
</html>