我有一个包含以下内容的HTML页面。svg.js文件是对svgweb的引用,来自http://code.google.com/p/svgweb/。
如果您在iPad上查看并多次从横向旋转到竖向,则图表会消失在页面底部。似乎每次回到垂直位置时,svg都会向下跳一点。
感谢提供开始寻找线索的提示。
<!DOCTYPE html>
<html>
<head>
<title>Dashboard</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css" />
<script src="/site_media/svgweb/svg.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>
</head>
<body>
<div data-role="page" id="SingleChart" data-theme="a">
<div data-role="header" data-position="fixed">
<h1>Chart Type Pie</h1>
</div><!-- /header -->
<div data-role="content" >
<div id="chartDiv">
<script type="image/svg+xml">
</div><!--content-->
</div><!--page-->
</body>
</html>