PDA

View Full Version : تغییر موقعیت table به راست با bootstrap چه جوریه ؟



RIG000
دوشنبه 14 مهر 1393, 16:19 عصر
من میخام جدولم کلا بچرخه به راست . اجزای درونیشم به همین شکل
اینم کد منه.

<table class="table table-striped table-bordered table-hover ">
<thead>
<tr >
<th class="text-center">
@Html.DisplayName("نام کالا")
</th>
<th class="text-center">
@Html.DisplayName("قیمت")
</th>
<th class="text-center">
@Html.DisplayName("تاریخ ثبت")
</th>
<th class="text-center">
@Html.DisplayName("توضیحات")
</th>
<th class="text-center">
@Html.DisplayName("تصویر")
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td class="text-center">
@Html.DisplayFor(modelItem => item.ProductName)
</td>
<td class="text-center">
@Html.DisplayFor(modelItem => item.ProductPrice)
</td>
<td class="text-center">
@Html.DisplayFor(modelItem => item.ProductDate)
</td>
<td class="text-center">
@Html.DisplayFor(modelItem => item.ProductDescription)
</td>
<td class="text-center">
@Html.DisplayFor(modelitem => item.ProductImage)
</td>
<td class="text-center">
@Html.ActionLink("Edit", "Edit", new { id = item.ProductId }) |
@Html.ActionLink("Details", "Details", new { id = item.ProductId }) |
@Html.ActionLink("Delete", "Delete", new { id = item.ProductId })
</td>
</tr>

}
</tbody>
</table>