A detailed description of the use of Hidefocus in CSS

Source: Internet
Author: User
May be a little partner see the title do not know what meaning, hidefocus that is hidden focus, with the function of the object focus failure, its function is equivalent to: Onfocus=this.blur () It is a Boolean, such as Hidefocus=true. You can also omit the direct write Hidefocus. Today we will give you a detailed introduction of the following CSS in the use of hidefocus in detail!

The use of Hidefocus in CSS

Simply put: Hidefocus is the setting of the dotted box outside the hyperlink!

Hidefocus is the hidden focus, which has the function of making the object focus fail, and its function is equivalent to:

Onfocus= "This.blur ()"

Its value is a Boolean value, such as Hidefocus=true. You can also omit the assignment to write Hidefocus directly.
You give the code if there is no hidefocus, then the mouse click on the hyperlink, the outside appears a dashed box, that is, focus. With Hidefocus, there is no dashed box.
Under IE, you need to include the hidefocus= "true" attribute in the structure of tag A.
Demonstrate:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" ><HTML><HEAD><TITLE> Test </title >

In the FF and other browsers are relatively easy, directly to label a definition style outline:none; It is possible, namely:

a {outline:none;}

Or

A{blr:expression (This.onfocus=this.blur ()); outline:none;} Support IE

Summarize:

This article uses the example to explain the CSS in the use of Hidefocus, I believe that we can easily grasp, and hope that your work has helped!

Related recommendations:

Hidefocus (Little Tricks)

Href= "/" and hidefocus= "true" in the <a> tag

A detailed description of the use of Hidefocus in CSS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.