网站在iPad上左对齐 [英] Website left aligned on iPad
本文介绍了网站在iPad上左对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的iPad遇到了 margin:0 auto
的问题。 div
与左边对齐,而不是像在桌面上一样。
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.
您可以查看网站这里: www.amplify.io
You can view the site here: www.amplify.io
一个宽度,我已经尝试了几个解决方案在网上,但没有可用...任何指针非常感激。
The container has a width and I've tried a few solutions on the web but to no avail... any pointers greatly appreciated.
推荐答案
请尝试添加:
<meta name="viewport" content="width=device-width,
maximum-scale=1.0" />
到您的HTML头。其中应该将页面宽度设置为iPad的宽度,并确保没有发生缩放。
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.
这篇关于网站在iPad上左对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文