1

Galaxy s3 有默认浏览器和 chrome。两种浏览器都警告宽度为 964。规格上说它的宽度是 720 怎么可能?

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.5;">-->
<title>Test mobile</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
<script>
function alertDimension()
{
    alert( "w: " + document.body.offsetWidth + ", h: " + document.body.offsetHeight );  
}
</script>
</head>
<body onload="alertDimension();">
<div class="wrapper">
    <p>Hello World
    </p>    
</div>
</body>
</html>
4

0 回答 0