如何设置ipad 3的屏幕分辨率

时间:2013-03-30 13:49:07

标签: css

嘿所有我对ipad -3设计都有点新鲜感。任何人都可以指导我如何提前为ipad-3.thanx设置媒体查询

2 个答案:

答案 0 :(得分:1)

新iPad的宽度和高度与第一台和第二台iPad相同,因此您只需要应用相同的媒体查询:

@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
  .ipad-portrait { color: red; } /* your css rules for ipad portrait */
}

@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) {
  .ipad-landscape { color: blue; } /* your css rules for ipad landscape */
}

答案 1 :(得分:0)

     @media screen and (device-aspect-ratio: 3/4) {

          // your styles here
     }