IE裏需要在 a 標籤中加入 hidefocus=”true” 屬性:<a href=”” hidefocus=”true” title=””>siteface</a>
而在Firefox等瀏覽器中定義CSS:a { outline:none; }或者a { outline:0; } 就可以了。
在IE裏 hideFocus即隱藏聚焦,具有使對象聚焦失效的功能,其功能相當於:
onFocus=”true”,它的值是一個布爾值,如hideFocus=true。也可省略賦值直接寫hideFocus。
onFocus=”true”,它的值是一個布爾值,如hideFocus=true。也可省略賦值直接寫hideFocus。
也可以在CSS文件裏這樣定義:
a{blur:expression(this.blur());}/*針對 IE*/
a { outline:none; } /*針對firefox等*/
但要注意expression是容易引起性能問題的。
a{blur:expression(this.blur());}/*針對 IE*/
a { outline:none; } /*針對firefox等*/
但要注意expression是容易引起性能問題的。