Home > Web Front-end > HTML Tutorial > href='/' and hideFocus='true'_html/css_WEB-ITnose in the tag

href='/' and hideFocus='true'_html/css_WEB-ITnose in the tag

WBOY
Release: 2016-06-24 11:51:38
Original
1952 people have browsed it

One: href="/"

Connect to the root directory

这是相对路径的根目录表示方法 可以写为 http://class.qq.com/">腾讯精品课 (绝对路径写法)也可以为 腾讯精品课一样的效果  有时候为了转移方便用相对路径
Copy after login
Copy after login

Two: hideFocus="true"

hideFocus means hiding focus, which has the function of disabling object focus. Its function is equivalent to:
onFocus="this.blur()"
Its value is a Boolean value, such as hideFocus=true. You can also omit the assignment and write hideFocus directly.
If the code you gave does not have hideFocus, then when the mouse clicks on the hyperlink, a dotted box will appear outside, which is the focus. When using hideFocus, there will be no dotted frame.

Under IE, you need to add the hidefocus="true" attribute to the structure of tag a. That is:

In browsers such as FF, it is relatively easy. Just define the style outline:none; for label a.

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template