[导入]怎样把中的禁止 怎么禁止选择下拉框中的某个选项

<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>
文章来源:http://Jorkin.Reallydo.Com/default.asp?id=475
posted @ 2008-03-04 13:40  pboy2925  阅读(538)  评论(0编辑  收藏  举报