Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @media only screen and (device-width: 768px) {
- /* For general iPad layouts */
- }
- @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
- /* For portrait layouts only */
- }
- @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
- /* For landscape layouts only */
- }
- <!--Target iPad-->
- <link href="ipad.css" rel="stylesheet" media="only screen and (min-device-width: 768px) and (max-device-width: 1024px)" type="text/css" />
- <!--Target iPhone 3GS> -->
- <link href="iphone.css" rel="stylesheet" media="only screen and (max-device-width: 480px)" type="text/css" />
- <!--Target iPhone 4-->
- <link href="retnia.css" rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 480px)" type="text/css" />
- if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
- {
- $(window).scroll(function() {
- $('header').css('top', $(this).scrollTop());
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement