string file="C:\\1.css";
if(!File.Exists(file))
File.Create(file);
StreamWriter sw = new StreamWriter(file);
sw.WriteLine("<style>");
sw.WriteLine("body{margin:0px;}");
//......这里写入你从数据库读出来的其他属性
sw.WriteLine("</style>");
sw.Close();
if(!File.Exists(file))
File.Create(file);
StreamWriter sw = new StreamWriter(file);
sw.WriteLine("<style>");
sw.WriteLine("body{margin:0px;}");
//......这里写入你从数据库读出来的其他属性
sw.WriteLine("</style>");
sw.Close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货