【Javascript】【jQuery】jQuery实现表格奇偶行异色效果
<script type="text/javascript" src="jquery-3.4.0.js"></script>
<script type="text/javascript">
$(() => {
$("td").css("width", "200px");
$("table").css("border", "5px solid red");
$("thead td").css("background", "skyblue");
$("tbody tr:odd").css("background", "lightblue");
});
</script>