当前位置: 代码迷 >> ASP.NET >> CS页怎么设置前台的样式类
  详细解决方案

CS页怎么设置前台的样式类

热度:4635   发布时间:2013-02-25 00:00:00.0
CS页如何设置前台的样式类
css样式页里

.list_1   li   {width:   250px;   float:   left;margin:10px   10px   10px   10px}
.list_2   li   {margin:10px   10px   10px   10px}

aspx页里:
<ul   class= "list_1 "   runat= "server "   id= "list_1 ">

cs页
在cs页里改变这个样式的类名称为list_2怎么写了
list_1.style....?  


???

------解决方案--------------------------------------------------------
try:
list_1.Attributes[ "class "] = "list_2 ";
  相关解决方案