ipad CSS / 视口
我有两个问题(仅限 iPhone\iPad)无法在我的网站
1 上解决. 我在标题容器下方有奇怪的边距(2px),这可以通过添加溢出来解决:隐藏,但这意味着我的下拉菜单将无法工作,这是相当不方便的。
2. 视口(纵向和横向)似乎有问题。我使用的是 978 像素网格。它不应该缩小以适应吗?
这些是我的额外 css 规则(我有 UA 检测和特定 css)
html * {
max-width: 980px;
}
.container {
padding: 0;
}
header {
position: relative;
}
div#content {
margin-top: 0px;
}
I have two issues (iPhone\iPad only) I haven't been able to resolve on my website
1.
I have weird margin beneath the header container (2px), this can be resolved by adding overflow:hidden, however that means my dropdowns won't work which is rather inconvenient.
2.
There seems to be a problem with the viewport (both portrait and landscape).. I am using the 978pixel grid.. shouldn't it just shrink to fit?
these are my extra css rules (I have UA detection and specific css)
html * {
max-width: 980px;
}
.container {
padding: 0;
}
header {
position: relative;
}
div#content {
margin-top: 0px;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从徽标中删除底部填充可以解决我的问题,即
Removing the bottom padding from your logo fixes the problem for me, i.e.