Clicking to enlarge the image in the WeChat public account article uses the native image preview control, not the control on the web page. Add a click event to the image, call the native code and pass the image address. WeChat transfers all the image paths on the page at once, so you can zoom in and slide left and right. If you look carefully, you will find that the image preview control is native, and the image will be reloaded after clicking. I work on Android, but I don’t know much about iOS. I just know that there is webview-bridge for native and web communication. But the principles are the same.
After the web page is loaded, just add a click event to all img tags
Clicking to enlarge the image in the WeChat public account article uses the native image preview control, not the control on the web page. Add a click event to the image, call the native code and pass the image address. WeChat transfers all the image paths on the page at once, so you can zoom in and slide left and right.
If you look carefully, you will find that the image preview control is native, and the image will be reloaded after clicking.
I work on Android, but I don’t know much about iOS. I just know that there is webview-bridge for native and web communication.
But the principles are the same.
MWPhotoBrowser does it instantly http://blog.csdn.net/u0125922...
Nonsense, this is the job of the front end. The front end can define a model pop-up box.