1. 添加CSS样式: Style style = new Style(); style.ForeColor = System.Drawing.Color.Navy; style.BackColor = System.Drawing.Color.LightGray; this.Header.StyleSheet.CreateStyleRule(style, null, “body”); 2. 链接外部的CSS样式表: HtmlLink link = new HtmlLink(); link.Attributes.Add(“type”, “text/css”); link.Attributes.