请老师检查一下是否符合要求
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML事件</title>
</head>
<body>
<!--补充代码-->
<button onmouseover="mouseoverFn(this,'purple')" onmouseout="mouseoutFn(this,'#333')">开始</button>
<button onmouseover="mouseoverFn(this,'yellow')" onmouseout="mouseoutFn(this,'#333')">结束</button>
<script type="text/javascript">
//补充代码
function mouseoverFn(btn,bgcolor){
btn.style.color=bgcolor;
}
function mouseoutFn(btn,bgcolor){
btn.style.color=bgcolor;
}
</script>
</body>
</html>
1
收起
正在回答
1回答
同学你好, 符合要求, 代码也很简洁, 继续加油哦!
欢迎采纳, 祝学习愉快~~~
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星