traveling menu for the adaptive site (delayed image test)



  • I'm doing a website using bootstrap3.

    Looking at the cell phone, we need to make a left menu. But that's not the question. The menu made jQuery all work well in the desktop case (where it's not necessary and will be shut off) Problems arise on the mobile.

    When the button is pressed, the site is not moving, but it decreases. Adapting to the new size. When off meta name="viewport" content="width=device-width" It's working well, but it's certainly not the way.



  • The main problem in the current meta name="viewport" content="width=device-width." It scales up a new size of the contents to the size of the screen and does not move the image beyond its limits. Problem solved by adding the code button

    $('meta[name="viewport"]').attr('content','initial-scale=1, user-scalable=no')
    

    It blocks the scale, plus prevents the user from changing manually.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2