When writing h5 projects in native html, sometimes encounter the problem that img tag images will be enlarged when clicked

Sometimes there will be some click events and jump buttons that contain pictures, and when the mobile terminal clicks on the picture, the picture will be enlarged and displayed

two solutions

The first one: add a css attribute pointer-events: none; to this picture

The second method: the method is to directly set this picture as the background picture of a div

Obviously the first method is simpler

Supongo que te gusta

Origin blog.csdn.net/stars______/article/details/128216391
Recomendado
Clasificación