您好,欢迎来到爱奥娱乐。
搜索
您的当前位置:首页如何使得文本框在点击的时候,边框的颜色变成绿色_html/css_WEB-ITnose

如何使得文本框在点击的时候,边框的颜色变成绿色_html/css_WEB-ITnose

来源:爱奥娱乐


回复讨论(解决方案)

还有其他写法么?!

用个css伪类就好了
input:focus {
border-style: solid;
border-color: #339933;
}

input:focus{	border-style:solid;	border-color:#339933}

input:focus{	border-style:solid;	border-color:#339933}


如何用div类实现嘞?!


input:focus{	border-style:solid;	border-color:#339933}


如何用div类实现嘞?!


用jQuery:
$("#你的input的ID").focus(	function(){	$("#你的div的ID").addClass("green");	}).blur(	function(){	$("#你的div的ID").removeClass("green");	});

Copyright © 2019- iaaf.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务