Šim*_*das 395
干得好:
.glowing-border {
border: 2px solid #dadada;
border-radius: 7px;
}
.glowing-border:focus {
outline: none;
border-color: #9ecaed;
box-shadow: 0 0 10px #9ecaed;
}
Run Code Online (Sandbox Code Playgroud)
现场演示: http ://jsfiddle.net/simevidas/CXUpm/1/show/
(要查看演示代码,请从URL中删除"show /")
Hri*_*sto 28
这样的事情怎么样...... http://jsfiddle.net/UnsungHero97/Qwpq4/1207/

CSS
input {
border: 1px solid #4195fc; /* some kind of blue border */
/* other CSS styles */
/* round the corners */
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
/* make it glow! */
-webkit-box-shadow: 0px 0px 4px #4195fc;
-moz-box-shadow: 0px 0px 4px #4195fc;
box-shadow: 0px 0px 4px #4195fc; /* some variation of blue for the shadow */
}
Run Code Online (Sandbox Code Playgroud)