html title属性
<table class="table table-hover table-striped">
@foreach (var article in Model)
{
<tr>
<td>
<a href="@Url.Action("ShowArticle", "Article", new { ArticleID = article.ArticleID, area = "" })" title="@article.Title"> @*title属性这些信息通常会在鼠标移到元素上时显示一段工具提示文本(tooltip text)。*@
@{
string _articleTile = article.Title;
if (_articleTile.Length > 17)
{
_articleTile = article.Title.Substring(0,15) + "……";
}
<text>@_articleTile</text>
}
</a>
</td>
</tr>
}
</table>