c#操作css

1: 

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

2

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

posted @ 2010-11-24 15:08  枫-  阅读(378)  评论(0编辑  收藏  举报