Home  >  Q&A  >  body text

javascript - Use H5 technology to implement a barcode similar to WeChat, Alipay, and click full screen and automatically switch to landscape mode?

Just like the title. I developed an APP using H5. Clicking on the QR code has been implemented. How to better implement the barcode clicking to enlarge and horizontal screen?
The effect is similar to Alipay and WeChat’s payment interface

The effect of Figure 3. I didn't do it well. I beg you all to provide elegant implementation methods.

扔个三星炸死你扔个三星炸死你2656 days ago1187

reply all(3)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-14 10:52:51

    I think we can use the 2D transform rotate (angle) attribute in transform in CSS3 to do it! Let it rotate when you click it

    reply
    0
  • 某草草

    某草草2017-06-14 10:52:51

    Idea: Detect horizontal and vertical screens => tansform rotate & change font-size
    Provide a more detailed horizontal and vertical screen practice, mobile side forced horizontal screen and forced vertical screen solutions

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-14 10:52:51

    Try searching for this onorientationchange, there may be compatibility issues, the code implementation cannot be explained in a sentence or two, and it may not be the effect you want;

    reply
    0
  • Cancelreply