62,268
社区成员
发帖
与我相关
我的任务
分享
//类似这样的思路
if(Request.QueryString["div"]!=null)
{
switch (Request.QueryString["div"].ToString())
{
case "2":
{
this.t2_layer_1.Attributes.Add("style", "display:none;");
this.t2_layer_2.Attributes.Add("style", "display:block;");
this.t2_layer_3.Attributes.Add("style", "display:none;");
this.t2_layer_4.Attributes.Add("style", "display:none;");
this.t2_layer_5.Attributes.Add("style", "display:none;");
this.t2_item_1.Attributes.Add("class", "infoCategories_item");
this.t2_item_2.Attributes.Add("class", "infoCategories_item_show");
this.t2_item_3.Attributes.Add("class", "infoCategories_item");
this.t2_item_4.Attributes.Add("class", "infoCategories_item");
this.t2_item_5.Attributes.Add("class", "infoCategories_item");
break;
}
case "3":
{
this.t2_layer_1.Attributes.Add("style", "display:none;");
this.t2_layer_2.Attributes.Add("style", "display:none;");
this.t2_layer_3.Attributes.Add("style", "display:block;");
this.t2_layer_4.Attributes.Add("style", "display:none;");
this.t2_layer_5.Attributes.Add("style", "display:none;");
this.t2_item_1.Attributes.Add("class", "infoCategories_item");
this.t2_item_2.Attributes.Add("class", "infoCategories_item");
this.t2_item_3.Attributes.Add("class", "infoCategories_item_show");
this.t2_item_4.Attributes.Add("class", "infoCategories_item");
this.t2_item_5.Attributes.Add("class", "infoCategories_item");
break;
}
}
}