好的多谢,<img src="@item.Thumbnail" alt="@item
回复 2楼xiyou的帖子<div class="feeds-list">
@{
foreach (dynamic item in Html.InfoDataList(new { ColumnId = 223, ShowNumber = 5, OrderBy = "thedate desc" }))
{
string url = Html.InfoDataSharedUrl(224, (int)item.Id);
string date = item.Thedate.ToString("yyyy-MM-dd");
<div class="feeds-item">
<div class="feeds-item-detail hasImg">
<p class="feeds-item-pic"><a href="@url" title="@item.Title"><img src="@item.Thumbnail" alt="@item.Title"></a></p>
<h3><a href="@url" title="@item.Title">@item.Title</a></h3>
<div class="feeds-item-info"> <span class="time"><i class="fa-calendar-o"></i>@date</span> </div>
</div>
</div>
}
}
</div>