感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body>
<input onmouseout="out()" id="in1" type="text">
</body>
</html>
xxxxxxxxxx
document.getElementById('in1').addEventListener('mouseover',over);
function over(){
document.getElementById('in1').style.background="red";
}
function out(){
document.getElementById('in1').removeEventListener('mouseover',over);
输入 CSS 代码……