【发布时间】:2017-08-02 00:39:56
【问题描述】:
我想在鼠标悬停事件时更改文本颜色。 但是这段代码不能正常工作
<!DOCTYPE html>
<html>
<head>
<title>
</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
$(document).ready(function(){
$("#A").mouseover(function(){
$("#A").css("backgroud-color","green");
});
});
</script>
</head>
<body>
<p id="A"> My Name is ABC</p>
</body>
</html>
【问题讨论】: