Solve the problem of having a background background color when clicking a button customized with an html tag

Problem Description

As shown in the figure below, when the button is clicked, a background color will appear at the bottom of the element
insert image description here

Solution

Add the following code to the css style of the element that generates the background color when clicked:-webkit-tap-highlight-color: transparent;

Guess you like

Origin blog.csdn.net/Komorebi_00/article/details/131167213