jquery - Media Query for HTML5 App for All Devices -


any 1 have idea , media queries detect individual devices such as:

ios,iphone 5 , iphone ratina display , android mobile. , ipad, tablets atc ?

go media-queries-for-standard-devices

/* smartphones (portrait , landscape) ----------- */ @media screen  , (min-device-width : 320px)  , (max-device-width : 480px) { /* styles */ }  /* smartphones (landscape) ----------- */ @media screen  , (min-width : 321px) { /* styles */ }  /* smartphones (portrait) ----------- */ @media screen  , (max-width : 320px) { /* styles */ }  /* ipads (portrait , landscape) ----------- */ @media screen  , (min-device-width : 768px)  , (max-device-width : 1024px) { /* styles */ }  /* ipads (landscape) ----------- */ @media screen  , (min-device-width : 768px)  , (max-device-width : 1024px)  , (orientation : landscape) { /* styles */ }  /* ipads (portrait) ----------- */ @media screen  , (min-device-width : 768px)  , (max-device-width : 1024px)  , (orientation : portrait) { /* styles */ }  /* desktops , laptops ----------- */ @media screen  , (min-width : 1224px) { /* styles */ }  /* large screens ----------- */ @media screen  , (min-width : 1824px) { /* styles */ }  /* iphone 4 ----------- */ @media screen , (-webkit-min-device-pixel-ratio : 1.5), screen , (min-device-pixel-ratio : 1.5) { /* styles */ } 

for retina display use

@media    screen , (-webkit-min-device-pixel-ratio: 2),    screen , (min-resolution: 192dpi) {      /* retina-specific stuff here */ } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -