tag"/> tag">
Home >Web Front-end >HTML Tutorial >href='/' and hideFocus='true'_html/css_WEB-ITnose in the tag
One: href="/"
Connect to the root directory
这是相对路径的根目录表示方法 可以写为 http://class.qq.com/">腾讯精品课 (绝对路径写法)也可以为 腾讯精品课一样的效果 有时候为了转移方便用相对路径
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.