Title的样式问题?

lhccaastj lhccaastj 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
foreach (DataRow row in ds.Tables[0].Rows)
{
string DateKey=e.Day.Date.ToString().Substring(0, e.Day.Date.ToString().IndexOf(" "));
string RowStr=row["Record_Date"].ToString();
int d1 = Convert.ToInt16(RowStr.Substring(0, 4));
int d2 = Convert.ToInt16(RowStr.Substring(4, 2));
int d3 = Convert.ToInt16(RowStr.Substring(6, 2));
string DateIndex = d1.ToString() + "-" + d2.ToString() + "-" + d3.ToString();

if (DateIndex==DateKey) {
string notecontent = row["Content"].ToString();
e.Cell.Attributes.Add("class", "box1");
e.Cell.Attributes.Add("title", notecontent);
break;
}
}
以上代码实现的calender新功能,即鼠标移动可以查看数据库中该日期相关事件。现有一问题是title中的样式(即字体、分段、格式、颜色等)希望能重新定义,该怎么做呢?
...全文
评论 6
收藏 已收藏
分享
返回顶部
lhccaastj
.NET社区 62,275 成员 668,968 内容