<html>
<head>
</head>
<body>
<div>
<div >
<td>asf卡拉挖</td>
<td>asfdd</td>
<td>ddasf</td>
<td>ddasf</td>
<td>ddasf</td>
<td>ddasf</td>
</tr>
</table>
</div>
</div>

<script>
var t0 = document.getElementById('t0');
function vertical(obj) {
console.log(obj.scrollTop); //该函数未定义
console.log(this.scrollTop);
console.log(obj.scrollLeft);
//console.log(this); //this 是windows对象
t0.style.top = obj.scrollTop;
}


</script>
</body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-11-15
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案