【发布时间】:2012-01-21 03:47:02
【问题描述】:
我在处理 iphone 上的网站高度时遇到问题。以下设置在所有其他设备(ipad、android 手机)上运行良好,但在 iphone 设备上,在 url 栏消失并且页面底部可见空白区域后,站点高度不会更新。
<!DOCTYPE html>
<html>
<head>
<title>temp</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<style type="text/css">
.ui-page{
min-height: 100% !important;
}
</style>
</head>
<body>
<div data-role="page" id="loadscreen" data-theme='c'>
<div data-role="content">
<div>
<a href="#" onClick="window.scrollTo(0, 1)">Scroll Up</a>
</div>
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>
【问题讨论】:
标签: jquery iphone html css jquery-mobile