<div class="htmlarea"> <textarea id="runcode41631"> <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> <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> 用這種變態的方式可以實現,在firefox和ie6下看效果很好 </textarea><br><input onclick="runEx('runcode41631')" type="button" value="运行代码"> <input onclick="doCopy('runcode41631')" type="button" value="复制代码"> <input onclick="doSave(runcode41631)" type="button" value="保存代码">[Ctrl+A 全選 註:<a href="/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能執行</a>]</div>