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