是否可以设置html表单输入框的选择颜色?
Is it possible to set the selection colour of html form input text box?
我希望能够指定 input
文本框周围出现的高亮颜色,当用户选择它时。默认情况下(在 Mac 上)根据下面的屏幕截图,这似乎总是浅蓝色。
有谁知道这是否可行,如果可行怎么办?
未选中:
已选择:
使用
input:focus {
border:/** your style definitions **/
outline: /** **/
box-shadow: /** **/
}
我希望能够指定 input
文本框周围出现的高亮颜色,当用户选择它时。默认情况下(在 Mac 上)根据下面的屏幕截图,这似乎总是浅蓝色。
有谁知道这是否可行,如果可行怎么办?
未选中:
已选择:
使用
input:focus {
border:/** your style definitions **/
outline: /** **/
box-shadow: /** **/
}