html中,当input标签获取焦点的时候, input标签外围会出现边框,有的时候咱们须要去掉这个边框,能够给input设置 outline:none;属性将其去掉。html
.btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus { outline: none; border-color: transparent; box-shadow:none; background:#77bc1f; color:#fff; } button的四种状态 focus 伪类: 1.普通状态2,鼠标hover状态 3.active 点击状态 4.focus 取得焦点状态