我正在尝试使用在iPad上运行的flex模型进行非常简单的布局.
我有一个包含div应该以内容div为中心.
示例代码按照预期在iPad(视网膜)上的所有浏览器和平台上执行.
在线使用各种iPad模拟器不会复制问题.我只能在实际的iPad上复制它.这是一个截图:

任何和所有的建议将非常感激.
CSS:
.container {
width: 510px;
height: 310px;
background: red;
display: flex;
display: -webkit-flexbox;
display: -ms-flexbox;
display: -webkit-flex;
flex-direction: row;
flex-wrap: wrap;
-webkit-box-pack: center;
-moz-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-flex-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items:center;
border: 2px solid;
padding: 5px;
margin: 0;
}
.content {
float: left;
width: 150px;
height: 150px;
background: green;
border: 2px solid;
padding: 0;
margin: 0;
}
.content2 {
float: left;
width: 150px;
height: 150px;
background: blue;
border: …Run Code Online (Sandbox Code Playgroud)