您的位置:首页 > Web前端 > CSS

C#后台动态调用样式表文件的代码

2009-06-17 11:42 246 查看
System.Web.UI.HtmlControls.HtmlGenericControl control = new HtmlGenericControl("link");
2 control.Attributes.Add("type", "text/css");
3 control.Attributes.Add("rel", "stylesheet");
4 control.Attributes.Add("href", "style.css");
5 Page.Header.Controls.Add(control);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: