css和html?
2个回答
展开全部
<!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>
<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>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2020-04-10
展开全部
<!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>
<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>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询