Во View моего проекта, для таблицы не получается установить выравнивание заголовков по середине, но значения столбцов получается:
EditElLearn.cshtml
@using WebApplication1.ViewModels;
@model WebApplication1.ViewModels.Monit10ElListVM
@{
ViewBag.Title = "EditElLearn";
}
...
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
@Html.HiddenFor(x=>x.ElCode)
int rowNumber = 0;
<table class="table table-striped table-bordered table-condensed" cols="6" border="1" cellspacing="0" cellpadding="10" align="center">
<tr bgcolor="#efefef">
<th align="center"> № п/п </th>
<th align="center" width="20%"> Фамилия </th>
<th align="center" width="18%"> Имя </th>
<th align="center" width="14%"> Отчество </th>
<th align="center" width="12%"> Класс </th>
<th align="center" width="14%"> % выполнения элемента содержания по КИМ ОГЭ-2015</th>
<th align="center" width="14%"> Коррекционная оценка</th>
ОГЭ-2015</th>
<th width="14%"> Коррекционная оценка</th>
</tr>
@for (int i = 0; i < Model.Monit10Learnes.Count; i++ )
{
rowNumber++;
<tr bgcolor="#efefef">
<td align="center">
@Html.DisplayFor(x => rowNumber)
</td>
<td>
@Html.DisplayFor(x => x.Monit10Learnes[i].Surname)
</td>
<td>
@Html.DisplayFor(x => x.Monit10Learnes[i].Name)
</td>
<td>
@Html.DisplayFor(x => x.Monit10Learnes[i].SecondName)
</td>
<td align="center">
@Html.DisplayFor(x => x.Monit10Learnes[i].ClassName)
</td>
<td align="center">
@Html.DisplayFor(x => x.Monit10Learnes[i].ValueOge15)
</td>
<td align="center">
@Html.EditorFor(x => x.Monit10Learnes[i].RatingValue)
</td>
@Html.HiddenFor(x => x.Monit10Learnes[i].RatingID)
</tr>
}
</table>
<div class="form-group">
<div class="col-md-offset-0">
<input type="submit" value="Сохранить" class="btn btn-success" />
</div>
</div>
}
С чем это может быть связано?