c#操作css 枫

1: 

show.Style.Add("display", "none");            hide.Style.Clear();

2

  TextBox1.Style["background-color"] = "red";  //背景设为红色 
         TextBox1.Style["height"] = "100px";      //高度设为100    

原文地址:https://www.cnblogs.com/mrray/p/1886612.html