The solution to the border problem after the svg icon is clicked

The front-end page sometimes has the problem of borders appearing after the svg icon is clicked, as shown in the following figure:

normal:

 After clicking:

 At this time, set the style of the icon to outline: none

outline: none;

 Reference: Reasons and solutions for black boxes appearing after clicking Button, icon Svg, etc.

Guess you like

Origin blog.csdn.net/sleepwalker_1992/article/details/129043975