【发布时间】:2018-11-05 08:00:27
【问题描述】:
我正在尝试在光标移过按钮时突出显示它
html 是:
<head>
<script src="jquery.js></script>
<scrips src="index.html"></script>
</head>
和 index.js 中的 js
$(".button").mouseenter(function(){
$(".button).css("background-color", "cyan");
$(".button).css("color", "white");
});
【问题讨论】:
-
您在 Javascript 中缺少引用。是在真实代码中还是复制错误?