更改< select>上的边框颜色HTML表单 [英] Change border color on <select> HTML form
本文介绍了更改< select>上的边框颜色HTML表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以更改HTML表单中< select />
元素上的边框颜色?
Is it possible to change the border color on a <select/>
element in an HTML form?
border-color
样式适用于Firefox,但不适用于IE。
The border-color
style works in Firefox but not IE.
我找不到真正的答案Google。
I could find no real answers on Google.
推荐答案
我会暗示在div块中封装该选择块并设置边框属性:
I would consinder enclosing that select block within a div block and setting the border property like so:
<div style="border: 2px solid blue;">
<select style="width: 100%;">
<option value="Sal">Sal</option>
<option value="Awesome">Awesome!</option>
</select>
</div>
能够用它来完成你所需要的。
You should be able to play with that to accomplish what you need.
这篇关于更改< select>上的边框颜色HTML表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文