WeChat QR code long press recognition problem, WeChat two-dimensional Recognition

Source: Internet
Author: User

Two-dimensional Recognition

When you create an H5 page, you can add a QR code below to enable and hold the image on your android server and then recognize it,

However, in the Apple system, it is useless to press the button. The QR Code cannot be identified.

One line of code is used for troubleshooting. I have read a lot of materials and I still think there is a deviation in the height of the calculated image. This may be related to parsing CSS styles, the height of the image on the screen cannot be calculated correctly, leading to problems in recognition.

After the adjustment, I found that the margins of the QR code image must be sufficient, and it is generally caused by the gap between upper and lower. I kept a large space between the upper and lower sides and centered the picture of the QR code, if you do not want to leave it blank, you can also put some image text and so on to avoid leaving it blank.

For example:

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.