是否有可能,有些瀏覽器計算%寬度不同?CSS體12格的設計問題
下面是代碼:http://jsfiddle.net/yuliantoadi/9eqMg/2/
HTML:
<div class="grid_6">
grid 6
</div>
<div class="grid_6">
grid 6
</div>
<div class="grid_1">
grid 1
</div>
<div class="grid_2">
grid 2
</div>
<div class="grid_4">
grid 4
</div>
<div class="grid_5">
grid 5
</div>
CSS:
[class^=grid_]{
float:left;
margin-left:1%;
margin-right:1%;
margin-bottom:5px;
background-color:red;
}
.grid_1 {
width:6.333%;
}
.grid_2{
width:14.666%
}
.grid_4{
width:31.333%
}
.grid_5{
width:39.666%;
}
.grid_6{
width:48%;
}
12格的設計是在Firefox OK,然後我檢查在Safari中,我發現問題。你可以看到它,如果你在Safari中打開或Chrome的代碼,有網後一點空間5.
是U使用http://www.designinfluences.com/fluid960gs/!? – Synxmax
是的,我試圖實現12網格設計 – yoel