Find file History
#7 Compare This branch is 5 commits ahead, 63 commits behind aliceui:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
readme.md
remove-outline.css
remove-outline.html
remove-outline.less
remove-outline.scss

readme.md

去除虚线框

一般情况下,链接的 outline 可以不去除。如果 outline 形状极丑陋的情况下,视觉效果很差,则使用些方法:

  • IE 添加 HTML 属性 hidefocus="true"

  • Firefox按钮

    /* for Firefox */
    input[type=submit]::-moz-focus-inner,input[type=button]::-moz-focus-inner{    
    border : 0px; 
    }
    /* for IE8 */
    input[type=submit]:focus, input[type=button]:focus{      
    outline : none;  
    } 
    

更多,参见:http://sofish.de/1366/