Home  >  Article  >  Database  >  hideFocus(小技巧)

hideFocus(小技巧)

WBOY
WBOYOriginal
2016-06-07 15:05:411873browse

hideFocus即隐藏聚焦,具有使对象聚焦失效的功能,其功能相当于: onFocus=this.blur() 它的是一个布尔,如hideFocus=true。也可省略赋直接写hideFocus。 你给的代码如果没有hideFocus,那么鼠标点击该超链接,则外面出现一个虚线框,即为聚焦。而使用了hideF

hideFocus即隐藏聚焦,具有使对象聚焦失效的功能,其功能相当于:
onFocus="this.blur()"
它的值是一个布尔值,如hideFocus=true。也可省略赋值直接写hideFocus。
你给的代码如果没有hideFocus,那么鼠标点击该超链接,则外面出现一个虚线框,即为聚焦。而使用了hideFocus则不会有虚线框。



a {
outline:none;
}


来自:扎客网络

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