<div class="row">
@foreach(var comicBook in Model)
{
<div class="col-md-3">
<h4>@Html.ActionLink(comicBook.DisplayText, "Detail", new { id = comicBook.Id })</h4>
<a href="@Url.Action("Detail", new { id = comicBook.Id})">
<img src="/Images/@comicBook.CoverImageFileName"
alt="@comicBook.DisplayText"
class="img-responsive" />
</a>
</div>
}
请执行下列操作:
然后在CSS中添加以下内容,或者您可以将其
<style>
放在html之间