案例:jquery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script src="/js/jquery-1.11.1.min.js"></script>
5
<script>
6
$(document).ready(function()
7
  {
8
  $("button").click(function(){
9
    $("#p1").css("color","red").slideUp(2000).slideDown(2000);
10
  });
11
});
12
</script>
13
</head>
14
15
<body>
16
17
<p id="p1">jQuery 乐趣十足!</p>
18
<button>点击这里</button>
19
20
</body>
21
</html>
22