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 取得焦點狀態