首页 > Web开发 > 详细

asp.net中label控件设置字体大小

时间:2018-05-07 13:03:04      阅读:303      评论:0      收藏:0      [点我收藏+]

protected void Button1_Click(object sender, EventArgs e)

{
  this.Label1.Font.Size = 55;//方法一:设置字体大小
  this.Label1.Font.Size = FontUnit.Larger;//方法二:设置字体大小
  this.Label1.Font.Size = FontUnit.Point(42);//方法三:设置字体大小,单位是pt磅
  this.Label1.Font.Bold = true;
  this.Label1.Font.Name = "楷体, 楷体_GB2312, SimKai";//楷体
  this.Label1.ForeColor = System.Drawing.Color.Red;
}

asp.net中label控件设置字体大小

原文:https://www.cnblogs.com/694579350liuq/p/9001711.html

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