remove grey background on link clicked in ios safari / chrome / firefox
Webkit has a specific style property for that: -webkit-tap-highlight-color
.
Copied from: http://davidwalsh.name/mobile-highlight-color—
/* light blue at 80% opacity */
html {
-webkit-tap-highlight-color: rgba(201, 224, 253, 0.8);
}
/* change it for a div that has a similar background-color to the light blue tap color */
.blueDiv {
-webkit-tap-highlight-color: rgba(251, 185, 250, 0.9);
}
If you want to remove the highlight completely—
.myButton {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
remove grey background on link clicked in ios safari / chrome / firefox
Webkit has a specific style property for that: -webkit-tap-highlight-color
.
Copied from: http://davidwalsh.name/mobile-highlight-color—
/* light blue at 80% opacity */
html {
-webkit-tap-highlight-color: rgba(201, 224, 253, 0.8);
}
/* change it for a div that has a similar background-color to the light blue tap color */
.blueDiv {
-webkit-tap-highlight-color: rgba(251, 185, 250, 0.9);
}
If you want to remove the highlight completely—
.myButton {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
CSS: Why is there something grey strange in Safari?
Try adding appearance: none;
to your select
.
Think that might be the problem
iPad Safari: How to disable the quick blinking effect when a link has been hit
You could set a transparent color to the -webkit-tap-highlight-color
property of that element.
a {
-webkit-tap-highlight-color: transparent;
}
Related Topics
Uiview Hide/Show with Animation
Error: Initializer for Conditional Binding Must Have Optional Type, Not 'String'
How to Use Nsurlsessiondatatask in Swift
How to Change Inactive Icon/Text Color on Tab Bar
How to Get Rgb Values from Uicolor
Including Custom Data into iOS Crash Dumps
iPhone In-App Purchase Store Kit Error -1003 "Cannot Connect to Itunes Store"
Ibeacon Notification When the App Is Not Running
Should I Declare Variables in Interface or Using Property in Objective-C Arc
Push Notification Not Receiving in Background iOS
Can't Assign Multiple Buttons to Uinavigationitem When Using Storyboard with iOS 5