我有适用于iOS和Android的PhoneGap应用程序。如果我使用style =“font-size:12px”,例如,它不起作用。在某些默认值上,Font在每个平台上都是stil。我尝试使用百分比,但也没有工作。这是我的代码:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<script type="text/javascript" src="js/soupiska.js" charset=windows-1250></script>
<title>HC Slovan Ústí</title>
</head>
<body style="background-color:#F0EFF5;overflow-x:hidden;font-size:60%;" onload="loadClanky();" >
<div id=" head" style="position:fixed;width:100%;height:auto;top:0px;left:0px;z-index:2;">
<img src="img/head.png" style="width:100%;height:100%;" /></div>
<div id="content" style="width:96%;position:absolute;z-index:1;left:7px;" >
<br /><br /><br /><br /><br />
</div>
<div id="menu" style="position:fixed;width:100%;height:auto;bottom:-5px;left:0px;z-index:2;">
<a href="index.html"><img src="img/bar1_n.png" style="width:20%;" /></a><a href="zapasy.html"><img src="img/bar2_n.png" style="width:20%;" /></a><a href="vstupenky.html"><img src="img/bar3_n.png" style="width:20%;" /></a><a href="soupiska.html"><img src="img/bar4_p.png" style="width:20%;" /></a><a href="partneri.html"><img src="img/bar5_n.png" style="width:20%;" /></a>
</div>
<script type="text/javascript" src="phonegap.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>
</html>
感谢Answers的家伙:)。