<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Input的分类CSS控制 </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
input[type="button"]
{
background-color: red;
}
input[type="text"]
{
background-color: silver;
color:red;
}
input[type="file"]
{
background-color: green;
}
input[type="radio"]
{
background-color: yellow;
}
input[type="checkbox"]
{
background-color: purple;
}
</style>
</head><body>
<form>
<input type="button" value="你好" /><br />
<input type="text" value="你好" /><br />
<input type="file" value="你好" /><br />
<input type="checkbox" value="你好" /><br />
<input type="radio" vlaue="你好" /><br />
</form>
</body></html>
to:【转自lovingkiss】