加油!!!
<!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>
<style>
table{
margin: 100px auto;
}
table td{
border-bottom: 1px solid yellow;
}
.bg{
background-color: black;
}
</style>
</head>
<body>
<table>
<tr>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
</tr>
<tr>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
</tr>
<tr>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
</tr>
</table>
<script>
let yy=document.querySelector('table').querySelectorAll('tr')
for(i=0;i<yy.length;i++){
yy[i].onmousemove=function(){
this.className='bg'
}
yy[i].onmouseout=function(){
this.className=''
}
}
</script>
</body>
</html>
#2022春招##前端##吐槽##八卦##交友##情感##职场##娱乐#
<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>
<style>
table{
margin: 100px auto;
}
table td{
border-bottom: 1px solid yellow;
}
.bg{
background-color: black;
}
</style>
</head>
<body>
<table>
<tr>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
</tr>
<tr>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
</tr>
<tr>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
<td>sddsfgf</td>
</tr>
</table>
<script>
let yy=document.querySelector('table').querySelectorAll('tr')
for(i=0;i<yy.length;i++){
yy[i].onmousemove=function(){
this.className='bg'
}
yy[i].onmouseout=function(){
this.className=''
}
}
</script>
</body>
</html>