37 lines
653 B
CSS
Raw Normal View History

2022-04-10 00:30:43 +08:00
.main {
width: 80%;
margin: 20px auto;
}
table {
border-spacing: 0;
width: 100%;
}
tr {
text-align: center;
}
th {
padding: 10px;
}
table tbody tr:nth-child(odd){
background-color: #eee
}
table thead {
background-color: blue;
color: white;
}
table thead th:first-child {
border-radius: 5px 0 0 0;
border: 1px solid blue;
}
table thead th:last-child {
border-radius: 0 5px 0 0;
border-right: 1px solid blue;
}
table tbody tr:last-child td:first-child {
border-radius: 0 0 0 5px;
}
table tbody tr:last-child td:last-child {
border-radius: 0 0 5px 0;
}