案例:jQuery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript" src="/js/jquery.js"></script>
4
<script type="text/javascript"> 
5
 
6
$(document).ready(function(){
7
    $(":button").css("background-color","#B2E0FF");
8
});
9
 
10
</script>   
11
 
12
</head>
13
<body>
14
<html>
15
<body>
16
 
17
<form action="">
18
Name: <input type="text" name="user" />
19
<br />
20
Password: <input type="password" name="password" />
21
<br />
22
<button type="button">Useless Button</button>
23
<input type="button" value="Another useless button" />
24
<br />
25
<input type="reset" value="Reset" />
26
<input type="submit" value="Submit" />
27
<br />
28
</form>
29
 
30
</body>
31
</html>
32
 
33
 
34
</body>
35
</html>
36