【发布时间】:2013-09-22 05:01:05
【问题描述】:
我有一个宽度为 100% 的 div 和 10% 内部的 10 个 div。它在 chrome 中运行良好,但在 iphone 上的 Safari 和 Safari 移动版中,它在右侧留下了空间。
有谁知道我可以做些什么来解决这个问题?
<div style="width:100%;">
<div style="width:10%;background-color:#fff;float:left;"> </div>
<div style="width:10%;background-color:#000;float:left;"> </div>
<div style="width:10%;background-color:#fff;float:left;"> </div>
<div style="width:10%;background-color:#000;float:left;"> </div>
<div style="width:10%;background-color:#fff;float:left;"> </div>
<div style="width:10%;background-color:#000;float:left;"> </div>
<div style="width:10%;background-color:#fff;float:left;"> </div>
<div style="width:10%;background-color:#000;float:left;"> </div>
<div style="width:10%;background-color:#fff;float:left;"> </div>
<div style="width:10%;background-color:#000;float:left;"> </div>
</div>
【问题讨论】: