手记

jquery点击实现变淡

<html>
<head>
<script type="text/javascript" src="../jquery/jquery.js" tppabs="http://www.w3school.com.cn/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
  $("div").fadeTo("slow",0.25);
  });
});
</script>
</head>

<body>
<div id="test" >
<button type="button">Click to Fade</button>
</div>

</body>

</html>
 

0人推荐
随时随地看视频
慕课网APP