The picture will be enlarged when the tap event is added to Wechat's browser to jump.

<div class="wrapper">
    <img src="/images/download/logo.png" class="logo">
    <img src="/images/download/appstore.png" class="appstore">
    <img src="/images/download/android.png" class="android">
</div>

$(".appstore").on("tap",function(){
    window.location.href = "https://www.baidu.com";
})


$(".android").on("tap",function(){
    window.location.href = "https://www.baidu.com";
})

when Wechat opens the page in his browser and clicks on .appstore and .Android, he sometimes zooms in on these two pictures and then jumps to the link
I hope not to enlarge the image. How to solve this

Mar.06,2021

the bug (feature) of Wechat browser kernel on Android in the past two weeks shows that the picture will be enlarged in full screen when you click on the picture. Under normal circumstances, you should call the jsSDK provided by Wechat to have this effect

solution

the default behavior of blocking clicks on pictures. Yes, in the current Android Wechat, clicking on pictures to enlarge the full screen has become its default behavior
We can write an event agent to block:

  

add a transparent div to the picture

Menu