<style>
body {
font-family: Arial, sans-serif;
}
table {
width: 100%;
border-collapse: collapse;
background-color: #f9f9f9;
border: 1px solid #ddd;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #4CAF50;
color: white;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
tr:hover {
background-color: #ddd;
}
caption {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 10px;
}
/* 图片样式 */
td img {
display: block; /* 图片将变成块级元素,方便使用 margin 居中 */
margin: 0 auto; /* 水平居中 */
max-width: 100px; /* 最大宽度为 100 像素 */
max-height: 100px; /* 最大高度为 100 像素 */
}
</style>