Im новое для веб-разработки и разработки приложений. Я могу делать приложения с помощью html5 и css3 без проблем. Но когда я использую jquery mobile, приложение не отображается должным образом. Как я могу это исправить. Это код, который я использовалКак сделать приложение для Android, написанное на jQuery Mobile and Phonegap
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Test App</title>
<link rel="stylesheet" href="css/themes/default/jquery.mobile-1.3.2.min.css">
<link rel="stylesheet" href="_assets/css/jqm-demos.css">
<link rel="stylesheet" href="css/glyphish.css.css">
<!-- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700"> -->
<script src="js/jquery.js"></script>
<script src="_assets/js/index.js"></script>
<script src="js/jquery.mobile-1.3.2.js"></script>
<script type="text/javascript" charset="utf-8"
src="cordova/cordova.js"></script>
<style>
.background {background:url(_assets/img/background.jpg)}
.toparea {background:#FFF}
.toparea { padding-top: 0.2px !important; padding-bottom: 0.2px !important }
.toparea {alignment-adjust:middle !important; }
</style>
<style>
.nav-glyphish-example .ui-btn .ui-btn-inner { padding-top: 40px !important; }
.nav-glyphish-example .ui-btn .ui-icon { width: 30px!important; height: 30px!important; margin-left: -15px !important; box-shadow: none!important; -moz-box-shadow: none!important; -webkit-box-shadow: none!important; -webkit-border-radius: 0 !important; border-radius: 0 !important; }
#chat .ui-icon { background: url(_assets/img/glyphish-icons/53-house.png) 50% 50% no-repeat; background-size: 22px 22px; }
#email .ui-icon { background: url(_assets/img/glyphish-icons/157-wrench.png) 50% 50% no-repeat; background-size: 24px 24px; }
#login .ui-icon { background: url(_assets/img/glyphish-icons/42-photos.png) 50% 50% no-repeat; background-size: 22px 24px; }
#beer .ui-icon { background: url(_assets/img/glyphish-icons/80-shopping-cart.png) 50% 50% no-repeat; background-size: 26px 19px; }
#coffee .ui-icon { background: url(_assets/img/glyphish-icons/18-envelope.png) 50% 50% no-repeat; background-size: 24px 16px; }
</style>
</head>
<body>
<section data-role="page" class="background" id="home">
<div class="toparea" data-theme="d" data-position="persistent">
<h1>Test App</h1>
</div>
<div data-theme="d" data-role="footer" class="nav-glyphish-example" data-position="fixed">
<div data-role="navbar" class="nav-glyphish-example" data-grid="d">
<ul>
<li><a href="index.html" class="ui-btn-active" data-transition="flow" id="chat" data-icon="custom"></a></li>
<li><a href="services.html" data-transition="flow" id="email" data-icon="custom"></a></li>
<li><a href="gallery.html" data-transition="flow" id="login" data-icon="custom"></a></li>
<li><a href="products.html" data-transition="flow" id="beer" data-icon="custom"></a></li>
<li><a href="contact.html" data-transition="flow" id="coffee" data-icon="custom"></a></li>
</ul>
</div>
</div>
</section>
</body>
</html>
Я надеюсь, что вы можете мне помочь.
С уважением
Майкл
привет, что ур опубликован код не работает r ур просит шаги для jQM + приложение Phonegap, чтобы начать .. пожалуйста, ясно – codebreaker
что точно не отображается правильно? Можете ли вы разместить желаемый результат по сравнению с тем, что вы видите? какую версию JQM вы используете, какую версию PhoneGap, какой мобильный телефон вы тестируете, работает ли она на эмуляторе, какой SDK вы используете для развертывания? Какой цвет носков вы носите сегодня? –