这里是我的HTML:HTML网页不适合移动设备屏幕
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Test</title>
<style type="text/css">
body {
font-size: 40px;
}
.screen {
font-size: 0.5em;
margin: 0;
background-color: red;
position: absolute;
width: 8em;
height: 19em;
left: 0;
top: 0;
}
.screen .main {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="screen">
<div class="main">Ut enim benefici liberalesque sumus, non ut exigamus gratiam (neque enim beneficium faeneramur sed natura propensi ad liberalitatem sumus), sic amicitiam non spe mercedis adducti sed quod omnis eius fructus in ipso amore inest, expetendam putamus.</div>
</div>
</body>
</html>
虽然我对缩放到设备宽度视meta标签,这个页面不适合屏幕:仍然存在白色边界(在我的Galaxy S3上)。我希望它完全是红色的。
为了使这个页面完全适合我的屏幕,我该怎么做? (和大多数设备的屏幕)
我在移动开发总新手,谢谢
非常好,谢谢 – Harkonnen