案例:CSS3 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style> 
5
input[type="text"]:enabled
6
{
7
background:#ffff00;
8
}
9
input[type="text"]: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
</form>
22
23
</body>
24
</html>
25