html去除input 聚焦時的邊框 以及button按鈕的邊框

html去除input聚焦時的邊框

html中,當input標籤獲取焦點的時候, input標籤外圍會出現邊框,有的時候咱們須要去掉這個邊框,能夠給input設置 outline:none;屬性將其去掉。html

bootstrap的button按鈕點擊以後會有邊框怎麼解決?

.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 取得焦點狀態
相關文章
相關標籤/搜索