CSS:Double-Border,如何

时间:2011-06-14 02:05:01

标签: css

  

可能重复:
  input focus outer glow

我如何在CSS中执行此操作?在焦点上看起来它有双边框......

Login Form

1 个答案:

答案 0 :(得分:1)

input:focus { property to apply }

对于一个实例,请查看以下小提琴: http://jsfiddle.net/L5xvJ/

input:focus { 
border: 1px solid #0af; 
outline: none; 
-moz-box-shadow: 0px 0px 15px rgba(0, 170, 255,.5);
-webkit-box-shadow: 0px 0px 15px rgba(0, 170, 255,.5);
box-shadow: 0px 0px 15px rgba(0, 170, 255,.5); }

not:焦点不应与:active - >混淆 What is the difference between :focus and :active?