Home  >  Article  >  Web Front-end  >  去除IE6浏览器下获得焦点的元素的虚线框的两个小办法_html/css_WEB-ITnose

去除IE6浏览器下获得焦点的元素的虚线框的两个小办法_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:36:091024browse

【1】onfocus = "this.blur()"//得到焦点时,失去焦点

e.g. test

【2】使用HTML标签的特性 hidefocus

e.g. test

【注意】由于使元素失去焦点后,该元素将无法通过Tab键选中,所以不到万不得已,不要这么操作。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn