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