如何更改选择下拉框的边框颜色?

时间:2017-05-30 01:28:56

标签: css

enter image description here

有没有办法将下拉框的蓝色边框线更改为其他内容?

2 个答案:

答案 0 :(得分:1)

@Joshua,

Did you try this

.input:focus {
    outline: none !important;
    border:1px solid red;
    box-shadow: 0 0 10px #719ECE;
}

Find it here

答案 1 :(得分:0)

根据this answer,它不能用CSS更改,因为它是由操作系统呈现的:

enter image description here

(图片的来源是关于SO的链接答案)

您只能更改选择框本身的边框和轮廓。