ASP.NET Mvc Bootstrap表奇怪的CSS标题行行为

时间:2016-02-03 18:02:02

标签: html css html5 twitter-bootstrap css3

我已经更改了thead内容的类,为它提供了一个边框,使其立即可见问题是什么,但这种情况发生在所有类中,没有类。我没有在任何地方申请过css,我希望让bootstrap能够为我完成大部分工作。

具体来说,我试图找到第一个<th>这么久的内容。

 <table id="selectedIngredientsTable" class="table-responsive">
                <thead class="thead-inverse">
                    <tr>
                        <th>@Html.Label("Ingredient", htmlAttributes: new { @class = "control-label col-md-2" })</th>
                        <th>@Html.Label("Amount", htmlAttributes: new { @class = "control-label col-md-2" })</th>
                        <th>@Html.Label("Measurement Unit", htmlAttributes: new { @class = "control-label col-md-2" })</th>
                    </tr>
                </thead>

然而,我是Bootstrap的新手,只是想知道是否有人知道这可能导致这种奇怪的行为......

table css

我已经与检查员核对过,似乎找不到任何东西......

enter image description here

编辑:这是生成的HTML:

Generated HTML

0 个答案:

没有答案