如何让禁用选项在 select html 处变为粗体和黑色?
How can I let the disable option being bold and black at select html?
系统默认select是“请Select”选项,它被禁用select。
现在选项是灰色的。
我可以将它加粗并让颜色为黑色吗?
谢谢。
<select id="commentType" name="commentType" required="true" >
<option value="Please Select" disabled selected>Please Select</option>
<option value="Bonus Point">Bonus Point</option>
<option value="Car Park">Car Park</option>
<option value="Gift">Gift</option>
<option value="Promotion">Promotion</option>
<option value="Technical Support">Technical Support</option>
<option value="Others">Others</option>
</select>
enter image description here
试试这个..
<select id="commentType" name="commentType" required="true">
<option value="Please Select" disabled selected style="font-weight:bold;color:black">Please Select</option>
<option value="Bonus Point">Bonus Point</option>
<option value="Car Park">Car Park</option>
<option value="Gift">Gift</option>
<option value="Promotion">Promotion</option>
<option value="Technical Support">Technical Support</option>
<option value="Others">Others</option>
</select>
系统默认select是“请Select”选项,它被禁用select。 现在选项是灰色的。 我可以将它加粗并让颜色为黑色吗?
谢谢。
<select id="commentType" name="commentType" required="true" >
<option value="Please Select" disabled selected>Please Select</option>
<option value="Bonus Point">Bonus Point</option>
<option value="Car Park">Car Park</option>
<option value="Gift">Gift</option>
<option value="Promotion">Promotion</option>
<option value="Technical Support">Technical Support</option>
<option value="Others">Others</option>
</select>
enter image description here
试试这个..
<select id="commentType" name="commentType" required="true">
<option value="Please Select" disabled selected style="font-weight:bold;color:black">Please Select</option>
<option value="Bonus Point">Bonus Point</option>
<option value="Car Park">Car Park</option>
<option value="Gift">Gift</option>
<option value="Promotion">Promotion</option>
<option value="Technical Support">Technical Support</option>
<option value="Others">Others</option>
</select>