CSS Tutorial: The setting of the link outer dashed box Hidefocus

Source: Internet
Author: User

Article Introduction: the use of Hidefocus in CSS.

The use of Hidefocus in CSS

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

Hidefocus, which is a hidden focus, has the function of focusing the object into failure, 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.
If you give the code if there is no hidefocus, then the mouse clicks on the hyperlink, the outside appears a dotted box, that is, focus. When you use Hidefocus, you don't have a dotted box.

Under IE, you need to add the hidefocus= "true" attribute to the structure of label A.

Demonstrate:
No dotted box
Have dotted box
In the FF and other browsers are relatively easy, directly to label A to define style outline:none; On it, namely:
a {outline:none;}
Or
A{blr:expression (This.onfocus=this.blur ()); outline:none;} Support IE



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.