首页 > Web开发 > 详细

html title属性

时间:2015-05-07 23:36:15      阅读:289      评论:0      收藏:0      [点我收藏+]

 

<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>

html title属性

原文:http://www.cnblogs.com/liuyuanhao/p/4486147.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!