html select滚动条样式修改,如何定义select下拉框的边框颜色和滚动条样式(How do I define the borders, colors, and scrollbar style...

如何定义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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值