首先,给Css文件起一个ID

 <link id="MasterCss" media="screen"  type="text/css" rel="Stylesheet" />

然后,在后台添加如下代码:

前面是Css文件的属性,后面是Css文件的路径。

 MasterCss.Attributes.Add("href""/Styles/OrangeCss/MasterCss.css");



 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2021-08-25
  • 2022-12-23
  • 2021-07-18
  • 2021-09-25
  • 2021-04-24
  • 2022-12-23
相关资源
相似解决方案