Jquery Mobile Styles not loading on Xcode iOS 4.2 Simulator
Hello Everyone
I am trying to load some styles of Jquery Mobile css file
(jquerymobile10a3min.css) , but when I run the iOS 4.2 simulator these styles
do not load.
The same code it works well on Android 2.1
I hope you could help me
Here is my code:
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <!-- Change this if you want to allow scaling -->
- <meta name="viewport" content="width=default-width; user-scalable=no" />
- <meta http-equiv="Content-type" content="text/html;charset=utf-8">
- <title>pruebaphonegap26feb11</title>
- <!-- iPad/iPhone specific css below, add after your main css >
- <link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />
- <link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />
- -->
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" />
- <!-- If you application is targeting iOS BEFORE 4.0 you MUST put json2.js from http://www.JSON.org/json2.js into your www directory and include it here -->
- <script type="text/javascript" charset="utf-8" src="phonegap.js"></
- script>
- <script type="text/javascript" charset="utf-8">
- // If you want to prevent dragging, uncomment this section
- /*
- function preventBehavior(e)
- {
- e.preventDefault();
- };
- document.addEventListener("touchmove", preventBehavior, false);
- */
- function onBodyLoad()
- {
- document.addEventListener("deviceready",onDeviceReady,false);
- }
- /* When this function is called, PhoneGap has been initialized and is ready to roll */
- function onDeviceReady()
- {
- // do your thing!
- }
- </script>
- </head>
- <body onload="onBodyLoad()">
- <div data-role="page" id="inicio" data-theme="a">
- <div data-role="header" >
- <h1>Title</h1>
- </div>
- <div data-role="content" >
- <div align="center"> <h1>AAAA</h2></div>
- <div align="center"> <h3>bbb</h2></div>
- <a href="#menu" data-role="button" data-theme="a">Start</a>
- </div>
- </div>
- </body>
- </html>