最佳答案
你应该使用 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/