search

Home  >  Q&A  >  body text

javascript - Problems with QR codes on ios phones in vue

In the vue project, introduce a picture with a QR code

<img src="1.jpg" class="newImage">

But why can’t the function of scanning the QR code of the picture be brought up when long pressing the picture?
But such a QR code can appear on an Android phone?

What is the reason?

Picture style:

.newImage{

width:100%;
min-height: 100vh;
background-size:100%;

}

For example, this picture:

曾经蜡笔没有小新曾经蜡笔没有小新2790 days ago512

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-18 10:47:38

    The function of long pressing the picture to call up the QR code of the scanned picture is a function packaged by third-party applications such as WeChat, QQ Browser, UC Browser, etc. It is not native to the system. iOS Safari and Android's native browsers do not have this function. Function

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-18 10:47:38

    There is a problem with the image positioning of the IOS QR code. . . It is actually positioned in the lower right corner of the relative picture. You can try long pressing on the lower right corner of the picture. You should be able to activate the function of scanning the QR code.

    reply
    0
  • Cancelreply