<html>
<head>
<style type="text/css">
.disabled {
}
.disabled optgroup {
font-size: 12px;
font-style: normal;
font-weight: normal;
font-variant: normal;
color:#CCCCCC;
background-color: #F5F5F5;
}
.disabled option {
padding-left:0px;
}
</style>
<title></title>
</head>
<body>
<select name="carCos" class="disabled">
<optgroup label="American"></optgroup>
<option value="General Motors">General Motors</option>
<option value="Ford">Ford Motor Company</option>
<option value="Chrysler">DaimlerChrysler</option>
<optgroup label="Japanese"></optgroup>
</select>
</body>
</html>
</select>
</body>
</html>
本文来源于 KinJAVA日志 (http://jorkin.reallydo.com)
原文地址: http://jorkin.reallydo.com/article.asp?id=475