footer and header of iPad 3 doesn't fit correctly
Hi guys ,
I've been developing an application and whenever i'm testing on the iPad to check the size i have the header on the status bar and there is a white area under the footer i don't know from where ! please help
and this is the code of my page
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <title>jQuery Mobile Web App</title>
- <link href="jquery-mobile/jquery.mobile-1.3.2.min.css" rel="stylesheet" type="text/css"/>
- <link href="jquery-mobile/jquery.mobile.structure-1.3.2.min.css" rel="stylesheet" type="text/css"/>
- <link href="jquery-mobile/jquery.mobile.theme-1.3.2.min.css" rel="stylesheet" type="text/css"/>
-
- <script src="jquery-mobile/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="jquery-mobile/jquery.mobile-1.3.2.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- document.addEventListener('touchmove', function(event) {
- event.preventDefault();
- }, false);
- </script>
-
- <script>
- function stretch_portal_content() {
- if ($(window).height() > $('body').innerHeight())
- {
- $('#portal-content').height(
- $(window).height() - (
- $('body').innerHeight() - $('#portal-content').outerHeight(true)
- )
- );
- }
- }
- </script>
- </head>
- <body>
-
- <div data-role="page" id="page">
- <div data-role="header" data-theme="b" data-position="fixed" >
- <h1>My Page</h1>
- </div>
- <div data-role="content"> </div>
- <div data-role="footer" data-theme="b" data-position="fixed" >
- <h4>Page Footer</h4>
- </div>
- </div>
-
-
-
-
-
-
- </div>
-
- </body>
- </html>
and i change the CSS file for iPad 3
i changed this line
- @media only screen
- and (min-device-width : 768px)
- and (max-device-width : 1024px)
- and (orientation : landscape)
- and (-webkit-min-device-pixel-ratio: 2)
- {
please Help !!!