Css 如何设置iPad3的屏幕分辨率

Css 如何设置iPad3的屏幕分辨率,css,Css,嘿,我对ipad-3的设计有点陌生。有谁能指导我如何提前为ipad-3.thanx设置媒体查询吗新ipad的宽度和高度与第一台和第二台ipad相同,因此您只需应用相同的媒体查询: @media screen and (device-aspect-ratio: 3/4) { // your styles here } @media all and (device-width: 768px) and (device-height: 1024px) and

嘿,我对ipad-3的设计有点陌生。有谁能指导我如何提前为ipad-3.thanx设置媒体查询吗

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

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

          // your styles here
     }
@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 */
}