我不熟悉web開發和應用程序開發。我可以使用html5和css3製作應用程序,沒有任何問題。但是,當我使用jQuery的手機應用程序不正確顯示。我如何解決它。這是我使用的代碼如何製作一個用jQuery Mobile和Phonegap編寫的android應用程序
<!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>
我希望你能幫助我。
問候
邁克爾
嗨你是否發佈的代碼沒有運行,因此你需要爲jQM + Phonegap應用程序開始步驟。請清除 – codebreaker
什麼不能正確顯示?你能發佈期望的輸出還是你看到的?你使用的是哪種JQM版本?什麼PhoneGap版本?你正在測試的手機是什麼?它在仿真器上工作嗎?你用什麼SDK部署?你今天穿什麼襪子顏色? –