Bootstrap 3:图像未在列中正确调整大小

时间:2014-02-14 23:00:49

标签: css twitter-bootstrap twitter-bootstrap-3

我正在尝试实现下面的布局,但我的HTML无法正常工作。有人能告诉我为什么它不起作用吗?

<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

2 个答案:

答案 0 :(得分:3)

你在课程上也缺少“=”

<div class"col-md-1">

应该是:<div class="col-md-1">

答案 1 :(得分: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>