x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<style>
6
input[type="text"]:enabled {
7
background: #ffff00;
8
}
9
10
input[type="text"]:disabled {
11
background: #dddddd;
12
}
13
</style>
14
</head>
15
<body>
16
17
<form action="">
18
First name: <input type="text" value="Mickey" /><br> Last name: <input type="text" value="Mouse" /><br> Country: <input type="text" disabled="disabled" value="Disneyland" /><br>
19
</form>
20
21
</body>
22
</html>