案例:jQuery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript" src="/js/jquery.js"></script>
4
<script type="text/javascript">
5
$(document).ready(function(){
6
  $("button").click(function(){
7
    alert($("p").css("color"));
8
  });
9
});
10
</script>
11
</head>
12
13
<body>
14
<p style="color:red">This is a paragraph.</p>
15
<button type="button">返回段落的颜色</button>
16
</body>
17
</html>
18