案例:CSS3 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style> 
5
input:enabled
6
{
7
background:#ffff00;
8
}
9
input:disabled
10
{
11
background:#dddddd;
12
}
13
</style>
14
</head>
15
<body>
16
17
<form action="">
18
First name: <input type="text" value="Mickey" /><br>
19
Last name: <input type="text" value="Mouse" /><br>
20
Country: <input type="text" disabled="disabled" value="Disneyland" /><br>
21
Password: <input type="password" name="password" /><br>
22
<input type="radio" value="male" name="gender" /> Male<br>
23
<input type="radio" value="female" name="gender" /> Female<br>
24
<input type="checkbox" value="Bike" /> I have a bike<br>
25
<input type="checkbox" value="Car" /> I have a car 
26
</form>
27
28
<p><b>注释:</b>本例只在 Opera 中正确地工作!</p>
29
30
</body>
31
</html>
32