【发布时间】:2012-10-23 10:23:33
【问题描述】:
我正在使用 jQuery Mobile 1.2.0 开发一个 Web 应用程序,并且在 iOS 和 Android 上可以正确计算页面高度,但在 Windows Phone 上却不能正确计算,因为 Windows Phone 在页面底部有一个间隙。
知道如何修复它,最好只使用 CSS 吗?
<!DOCTYPE html>
<html>
<head>
<title>Hello World jQuery Mobile</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile-1.2.0.min.css" /></script>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>
<div data-role="page" style="background:green">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
<p>Page content goes here.</p>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
</body>
</html>
【问题讨论】:
-
你会找到不同的方法来找到高度和宽度。看看这个。 screen-size-on-windows-phone-7-series
标签: javascript jquery css windows-phone-7 jquery-mobile