Website left aligned on iPad

前端 未结 3 912
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 06:02

I\'m having problems with margin: 0 auto with my iPad. The div aligns to the left, not the center like it does on my desktop.

You can view

3条回答
  •  时光说笑
    2021-01-03 06:40

    Might be a case of overflow happening because you don't set a viewport for mobile devices.

    Try adding:

    
    

    to your HTML head to be certain. Which should set the page width to the iPad's width and make sure no scaling is happening.

提交回复
热议问题