2015-09-01 47 views
1

我正在通过基金会开发网站。但是我的网格系统工作不正常。每当我调整我的浏览器宽度到1596px,1440px和1333px;网格系统工作不正常。我把我的源代码,以基金会网格系统问题

Codepen:

Codepen

我得到了我scren的截图视频。

Youtube

<!DOCTYPE html> 
 
<html> 
 

 
<head> 
 
    <meta charset="UTF-8"> 
 
    <meta name="google" value="notranslate"> 
 

 

 
    <title>Foundation</title> 
 

 

 
    <link rel="stylesheet" href="//codepen.io/assets/reset/normalize.css"> 
 

 
    <link rel='stylesheet prefetch' href='https://cdn.jsdelivr.net/foundation/5.5.0/css/foundation.css'> 
 

 

 

 
</head> 
 

 
<body> 
 

 
    <div class="row"> 
 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-powershot-elph-310-hs/" title="Canon PowerShot Elph 310 HS"> 
 
     <img width="199" height="147" src="http://i.imgur.com/fwHd8zf.png" class="attachment-kucuk wp-post-image" alt="Canon_PowerShot_Elph_310_HS_428369_i0" /> 
 
     <h4>Canon PowerShot Elph 310 HS</h4> 
 
     </a> 
 
    </div> 
 

 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-powershot-s120/" title="Canon PowerShot S120"> 
 
     <img width="280" height="250" src="http://i.imgur.com/HLuFBv0.png" class="attachment-kucuk wp-post-image" alt="Canon_PowerShot_S120_890378" /> 
 
     <h4>Canon PowerShot S120</h4> 
 
     </a> 
 
    </div> 
 

 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-1d-x/" title="Canon 1D X"> 
 
     <img width="275" height="250" src="http://i.imgur.com/BlX05lN.png" class="attachment-kucuk wp-post-image" alt="Canon_EOS_1D_X_466261_i0" /> 
 
     <h4>Canon 1D X</h4> 
 
     </a> 
 
    </div> 
 

 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-7d-mark2/" title="Canon 7D Mark2"> 
 
     <img width="280" height="250" src="http://i.imgur.com/DB3cfLX.png" class="attachment-kucuk wp-post-image" alt="_3962017" /> 
 
     <h4>Canon 7D Mark2</h4> 
 
     </a> 
 
    </div> 
 

 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-7d/" title="Canon 7D"> 
 
     <img width="280" height="250" src="http://i.imgur.com/lOpicbY.png" class="attachment-kucuk wp-post-image" alt="Canon EOS 7D" /> 
 
     <h4>Canon 7D</h4> 
 
     </a> 
 
    </div> 
 

 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-70d/" title="Canon 70D"> 
 
     <img width="280" height="250" src="http://i.imgur.com/GT0t4eo.png" class="attachment-kucuk wp-post-image" alt="Canon-eos-70-d-fotograf-makinesi" /> 
 
     <h4>Canon 70D</h4> 
 
     </a> 
 
    </div> 
 

 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-6d/" title="Canon 6D"> 
 
     <img width="280" height="250" src="http://i.imgur.com/y2wRSZx.png" class="attachment-kucuk wp-post-image" alt="Canon 6D" /> 
 
     <h4>Canon 6D</h4> 
 
     </a> 
 
    </div> 
 

 
    <div class="large-3 medium-4 small-6 columns"> 
 
     <a href="http://127.0.0.1/makine/canon-ef-50mm-f1-8-ii/" title="Canon EF 50mm f/1.8 II"> 
 
     <img width="280" height="250" src="http://i.imgur.com/5l2GjRG.png" class="attachment-kucuk wp-post-image" alt="Canon_EF_50mm_f18" /> 
 
     <h4>Canon EF 50mm f/1.8 II</h4> 
 
     </a> 
 
    </div> 
 

 
    </div> 
 

 

 

 
</body> 
 

 
</html>

+0

目前还不清楚是什么导致你在这种情况下想要什么? –

回答

2

我想我看到您的问题是什么...当它按比例缩小的电网是打破正确的吗?对于像这样的东西,我喜欢使用块网格,它真的很方便 - 检查出来http://codepen.io/brock8282/pen/ojXZMW

此外,尝试使用均衡器的李,使一切都一致。


             
  
<div class="row"> 
 

 
<div class="columns large-12"> 
 
    
 
    <ul class="small-block-grid-2 medium-block-grid-3 large-block-grid-4"> 
 
    
 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-powershot-elph-310-hs/" title="Canon PowerShot Elph 310 HS"> 
 
      <img src="http://i.imgur.com/fwHd8zf.png" class="attachment-kucuk wp-post-image" alt="Canon_PowerShot_Elph_310_HS_428369_i0"> 
 
     <h4>Canon PowerShot Elph 310 HS</h4> 
 
     </a> 
 
    </li> 
 

 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-powershot-s120/" title="Canon PowerShot S120"> 
 
      <img src="http://i.imgur.com/HLuFBv0.png" class="attachment-kucuk wp-post-image" alt="Canon_PowerShot_S120_890378"> 
 
      <h4>Canon PowerShot S120</h4> 
 
     </a> 
 
    </li> 
 

 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-1d-x/" title="Canon 1D X"> 
 
      <img src="http://i.imgur.com/BlX05lN.png" class="attachment-kucuk wp-post-image" alt="Canon_EOS_1D_X_466261_i0"> 
 
      <h4>Canon 1D X</h4> 
 
     </a> 
 
    </li> 
 

 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-7d-mark2/" title="Canon 7D Mark2"> 
 
      <img src="http://i.imgur.com/DB3cfLX.png" class="attachment-kucuk wp-post-image" alt="_3962017"> 
 
      <h4>Canon 7D Mark2</h4> 
 
     </a> 
 
    </li> 
 

 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-7d/" title="Canon 7D"> 
 
      <img src="http://i.imgur.com/lOpicbY.png" class="attachment-kucuk wp-post-image" alt="Canon EOS 7D"> 
 
      <h4>Canon 7D</h4> 
 
     </a> 
 
    </li> 
 

 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-70d/" title="Canon 70D"> 
 
      <img src="http://i.imgur.com/GT0t4eo.png" class="attachment-kucuk wp-post-image" alt="Canon-eos-70-d-fotograf-makinesi"> 
 
      <h4>Canon 70D</h4> 
 
     </a> 
 
    </li> 
 

 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-6d/" title="Canon 6D"> 
 
      <img src="http://i.imgur.com/y2wRSZx.png" class="attachment-kucuk wp-post-image" alt="Canon 6D"> 
 
      <h4>Canon 6D</h4> 
 
     </a> 
 
    </li> 
 

 
<li> 
 
     <a href="http://127.0.0.1/makine/canon-ef-50mm-f1-8-ii/" title="Canon EF 50mm f/1.8 II"> 
 
      <img src="http://i.imgur.com/5l2GjRG.png" class="attachment-kucuk wp-post-image" alt="Canon_EF_50mm_f18"> 
 
      <h4>Canon EF 50mm f/1.8 II</h4> 
 
     </a> 
 
    </li> 
 

 
</ul> 
 
    
 
    </div></div>
+0

谢谢。我将我的html代码转换为bootstrap来解决这个问题。现在我将再次使用基金会。 – ahmetlutfu

0

使用block grid组件此:

块网格给你一个方法来内 电网平分列表的内容。如果您想要创建一行五个图像或段落 ,无论屏幕大小如何,都需要保持均匀间隔,网格块 适合您。

1

在基础6 blockgrid UL /李行的事工作,你需要使用一个blockgrid +柱系统

<div class="row small-up-1 medium-up-2 large-up-4"> 
    <div class="column"> 
    <img src="//placehold.it/300x300" class="thumbnail" alt=""> 
    </div> 
    <div class="column"> 
    <img src="//placehold.it/300x300" class="thumbnail" alt=""> 
    </div> 
    <div class="column"> 
    <img src="//placehold.it/300x300" class="thumbnail" alt=""> 
    </div> 
    <div class="column"> 
    <img src="//placehold.it/300x300" class="thumbnail" alt=""> 
    </div> 
    <div class="column"> 
    <img src="//placehold.it/300x300" class="thumbnail" alt=""> 
    </div> 
    <div class="column"> 
    <img src="//placehold.it/300x300" class="thumbnail" alt=""> 
    </div> 
</div>