2014-02-14 70 views
1

我試圖實現下面的佈局,但是我的HTML無法正常工作。有人能告訴我爲什麼它不起作用嗎?Bootstrap 3:圖像在列中不能正確調整大小

<div id="technologies-skills"> 
    <div class="container"> 
     <div class="row"> 
      <h3 class="header">TECHNOLOGIES & SKILLS</h3> 

      <div class="col-md-2"></div> 
      <div class="col-md-4"> 
       <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p> 
      </div> 

      <div class="row"> 
       <div class="col-md-6"> 
        <div class"col-md-1"> 
         <img src="images/logos/android_logo.png" class="img-rounded img-responsive center-block" alt="Android Logo" /> 
        </div> 
        <div class"col-md-1"> 
         <img src="images/logos/android_logo.png" class="img-rounded img-responsive center-block" alt="Android Logo" /> 
        </div> 
        <div class"col-md-1"> 
         <img src="images/logos/android_logo.png" class="img-rounded img-responsive center-block" alt="Android Logo" /> 
        </div> 
        <div class"col-md-1"> 
         <img src="images/logos/android_logo.png" class="img-rounded img-responsive center-block" alt="Android Logo" /> 
        </div> 
        <div class"col-md-1"> 
         <img src="images/logos/android_logo.png" class="img-rounded img-responsive center-block" alt="Android Logo" /> 
        </div> 
        <div class"col-md-1"> 
         <img src="images/logos/android_logo.png" class="img-rounded img-responsive center-block" alt="Android Logo" /> 
        </div> 
       </div> 
      </div> 

     </div> 
    </div> <!-- container --> 
</div> <!-- technologie-skills --> 

enter image description here

回答

0

你只是缺少一些div。無論何時您需要細分,請連續進行。當你在一行內時,一切(默認)除以12(在Bootstrap 3中)。

http://jsfiddle.net/emptywalls/8JvNT/

<div class="container"> 
    <div class="row"> 
     <div class="col-xs-6">left column</div> 
     <div class="col-xs-6"> 
      <div class="row"> 
       <div class="col-xs-2">a</div> 
       <div class="col-xs-2">b</div> 
       <div class="col-xs-2">c</div> 
       <div class="col-xs-2">d</div> 
       <div class="col-xs-2">e</div> 
       <div class="col-xs-2">f</div> 
      </div> 
      <div class="row"> 
       <div class="col-xs-2">g</div> 
       <div class="col-xs-2">h</div> 
       <div class="col-xs-2">i</div> 
       <div class="col-xs-2">j</div> 
       <div class="col-xs-2">k</div> 
       <div class="col-xs-2">l</div> 
      </div> 
     </div> 
    </div> 
</div> 
+0

謝謝!爲什麼使用'col-xs'和'col-md'? –

+0

哎呀抱歉,我應該提到。我切換到'col-xs'只是爲了在JSFiddle中顯示/調試。使用'col-md'將會起到同樣的作用。非常歡迎你!很高興我能幫上忙。如果它適合你,請確定並接受答案。 – emptywalls

3

您還對班

失蹤 「=」
<div class"col-md-1"> 

應該是:<div class="col-md-1">

+0

噢,那也是^ – emptywalls

相關問題