By default, when you click the a tag, input, or add the click event, the browser leaves a contour outline (blue below chrome) ~ However these default outline outlines, sometimes it affects the aesthetics, not what we want to keep. How do we get rid of these nasty contour frames?
Using Outline:none to remove outline frames
Such as:
a{Outline:none;}
PC-side outline frame disappears, but found on the phone still exists ~ ~
Add the following code to
a{ Outline:none; -webkit-tap-highlight-color:rgba (0,0,0,0);}
-webkit-tap-highlight-color is a non-canonical attribute (unsupported WebKit property) that does not appear in the draft CSS specification.
Overrides the highlighted color of the display when the user clicks on a link in the iOS Safari browser or a clickable element of JavaScript.
This property can only set transparency. If transparency is not set, IOS Safari uses the default transparency. When transparency is set to 0, this property is disabled, and when the transparency is set to 1, the element is not visible when clicked.
Grammar:
-webkit-tap-highlight-color: Color
default value : Inherit
applies to : link elements such as new window open, IMG elements such as saving images and so on
Value:
- Color: Colour value
- Transparent: Transparent value
* CSS3 new properties may be described errors and changes, for reference only, continuous update
Compatibility:
- IOS 1.1.1 and later versions of Safari browser available
- Most Android phones are also supported, but show different results.
PS: This article turns from http://www.cnblogs.com/AllenChou/p/4726012.html, thanks for sharing
CSS removes browser default outline outlines