如何定义select下拉框的边框颜色和滚动条样式(How do I define the borders, colors, and scrollbar styles for the select drop-down box)
如何定义select下拉框的边框颜色和滚动条样式(How do I define the borders, colors, and scrollbar styles for the select drop-down box)
How do I define the borders, colors, and scrollbar styles for the Select drop-down box?
Method 1: defines the drop-down frame style only.
flash of .
Blue ideal
5D multimedia
CSDN
MSDN
Method two: define the border and scroll bar style (by layer to simulate the implementation).
Function showHide (obj) {/ / looming layer function
Sh={block: "None", "none:", "block"}
/ / display attribute layer value in the "block" and "None" between continuous rotation,
Reach / / hide and show the effect of rotation
OOption.runtimeStyle.display=sh[oOption.currentStyle.display]}
The implementation of this code -- >
Obj=event.srcElement
If (obj.tagName== TD) {// judge OnMouseOver events on the cell
Set the event / cell background color
Obj.style.backgroundColor= "#dedede""
/ / font color settings of the cell where the accident occurs
Obj.style.color= "#FFFFFF""
}
object oOption open up
Obj=event.srcElement
If (obj.tagName== TD) {/ / onmouseout judgment if the event happens on a cell
Set the event / cell background color
Obj.style.backgroundColor= "#FFFFFF""
Obj.style.color= "#000000" / / set event where the cell font color
}
--id
Obj=event.srcElement
If (obj.tagName== TD) {/ / OnMouseOver judg