1, Reason: Mobile End event response will have the default background box color, a label active also has the default background box color.
2, the solution:
(1) Moving end let the background box not show
-webkit-tap-highlight-color:rgba (0, 0, 0, 0);
-moz-tap-highlight-color:rgba (0, 0, 0, 0);
-ms-tap-highlight-color:rgba (0, 0, 0, 0);
-o-tap-highlight-color:rgba (0, 0, 0, 0);
Tap-highlight-color:rgba (0, 0, 0, 0);
(2) PC side the background frame color when a label is active
a:active{
Background-color: The color you want to set;
3. Additional tips:
Usually when we select text, the background color is blue. We can use the following style to set the page selection style:
:: Selection {
background: #FFF;
Color: #333;
}
::-moz-selection {
background: #FFF;
Color: #333;
}
::-webkit-selection {
background: #FFF;
Color: #333;
}
If you want to remove the color of the selected, the background are set to none on the line.