<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>js滑动改变颜色</title>
<script src="js/jquery-1.11.1.js"></script>
<script>
$(function(){
$("p").click(function(){
$(this).css("color","red");
});
$("p").hover(
function(){
$(this).css("color","red");
},
function(){
$(this).css("color","yellow");
}
);
});
</script>
</head>
<body>
<p>
点击试试
</p>
</body>
</html>
script js滑动改变颜色
最新推荐文章于 2024-05-13 06:59:53 发布