Bootstrap列col-md- *不得超过12

时间:2014-05-19 16:33:15

标签: jquery twitter-bootstrap

Bootstrap显示"Sum of columns col-md-* must not exceed 12 "。我两次定义了col-md-2。而已。可能是什么问题?

   <div class="col-md-10" id="box_front_top">
    <div class="col-md-2">
        @Html.ActionLink(i18n_Models_Category.CategoryManagement, "Index", "Category", null, new { @class = "btn btn-primary reset-a-visited" })
    </div>
    <div class="col-md-2 col-xs-offset-1">
        @Html.ActionLink(i18n_General.ImageManagement, "Index", "Image", null, new { @class = "btn btn-primary reset-a-visited" })
    </div>
</div>

enter image description here

1 个答案:

答案 0 :(得分:1)

您错过了必需的row元素:

<div class="col-md-10" id="box_front_top">
    <div class="row">
        <div class="col-md-2">

http://getbootstrap.com/css/#grid-nesting