html - 不在 Ipad 上显示正确的站点

标签 html css

我再次请求您的帮助。转到此 link看看这个 block ,这是屏幕截图。

enter image description here

显示流畅准确,Ipad上显示如下截图

enter image description here

如您所见,方 block 已移动。代码似乎是正确的,我不明白发生了什么。请帮忙

最佳答案

你应该使用 media queries针对特定设备并应用相关样式。

/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
/* Styles */
}

来源:http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

关于html - 不在 Ipad 上显示正确的站点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11608863/

相关文章:

html - 合并DIV之间的边界

javascript - 删除jquery中的一些标签

html - TailwindCSS - 有没有办法不多次写入相同的前缀?例如 `hover:`

html - 三 Angular 形 div 元素相对于其父元素的大小和位置

javascript - CountUp javascript 显示控制台错误 "[CountUp] target is null or undefined"

css - 移动友好的 Bootstrap 面包屑标签

javascript - 多行上彼此相邻的元素没有边距

html - 背景图片不覆盖全身

html - 如何居中响应嵌入 bootstrap 3

jquery - aria-expanded 等于 false 不起作用