Display three columns per row in MVC cshtml

前端 未结 2 920
[愿得一人]
[愿得一人] 2020-12-19 16:10

What I have currently is the below which works fine but now it shows my records in a long list, what i want to do is show three(3) records per row. I tried putting a for loo

2条回答
  •  没有蜡笔的小新
    2020-12-19 17:08

    Using Bootstrap Responsive grids, it is not necessary to manually build a table and loop through the rows. Bootstrap will automatically wrap columns for you. Bootstrap works on a grid system using 12 columns, and if more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.

    @Html.Hidden("ClientID", ClientItem.ClientID) @Html.Label(ClientItem.ClientName)

    here is a sample on Bootply

提交回复
热议问题