我测试基本布局:CSS车身宽度不扩展到手机宽度
<html>
<head>
<link type="text/css" rel="stylesheet" href="./../public/css/main.css">
</head>
<body>
</body>
</html>
而且有主体元素的风格
background-color: rgb(255, 0, 0);
color: rgb(51, 51, 51);
display: block;
font-family: 'Segoe UI', Ubuntu, Roboto, 'Helvetica Neue', 'Open Sans', Arial, sans-serif;
font-size: 14px;
height: 1091px;
line-height: 20px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
min-height: 100%;
min-width: 1024px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
width: 1024px;
的事情是,我确信,车身宽度会被缩放并适合手机尺寸。但是当我在iPhone 3GS水平滚动条上出现时进行测试。为什么宽度不缩放?
为什么不使用margin:0;和填充:0;?较少的代码.. –
将以下元标记添加到您的头部,以避免用户可以缩放。' –