为了账号安全,请及时绑定邮箱和手机立即绑定

如下这段代码在IE上是可以用的,在firefox上就不行,为什么呢?

如下这段代码在IE上是可以用的,在firefox上就不行,为什么呢?

慕慕森 2022-05-19 13:15:01
<html><head><script src="FARS_files/jquery-latest.js"></script><script type="text/javascript">window.onload = function() {document.getElementById("btn").onclick = function() {if(document.body.style.cursor == "wait") // 箭头 (默认)document.body.style.cursor = "default";else // 沙漏 (等待)document.body.style.cursor = "wait";};};</script></head><body><input id="btn" type="button" value="Click" /></body></html>
查看完整描述

1 回答

?
呼啦一阵风

TA贡献1802条经验 获得超6个赞

加个样式
<style>
html,body{height:100%}
</style>

查看完整回答
反对 回复 2022-05-23
  • 1 回答
  • 0 关注
  • 156 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号