如何使用类更改焦点上的html文本框的边框颜色 [英] how to change the border color of a html textbox on focus using class
本文介绍了如何使用类更改焦点上的html文本框的边框颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的班级名称是输入
i尝试
my class name is inputs
i tried
.inputs:focus
{
border-color:Aqua;
}
但是没用完
请帮我
but it did not work out
please help me
推荐答案
try below, it will work
input:focus
{
border-color:Aqua;
}
试试这个: -
try this:-
input[type="text"]:focus {
border-color: Aqua;
}
请参考这个小提琴: -
http://jsfiddle.net/4TcY3/5/ [ ^ ]
http://jsfiddle.net/4TcY3/ 2 / [ ^ ]
>
使用jquery onfocus方法
如何使用JQUERY在TEXTBOX中设置焦点 [ ^ ]
use jquery onfocus method
How To set Focus in TEXTBOX using JQUERY[^]
这篇关于如何使用类更改焦点上的html文本框的边框颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文