<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
*{
padding: 0;
margin: 0;
border-spacing: 0ex;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
table{
text-align: center;
}
thead{
background-color: pink;
color: #fff;
}
tr{
border-bottom: 1px solid black;
}
td{
padding: 5px;
}
.bg{
background-color:pink;
color: #fff;
}
</style>
<body>
<table>
<thead>
<th>代码</th>
<th>名称</th&
利用html css javascript实现表格隔行变色效果
最新推荐文章于 2024-07-16 17:18:30 发布