for (int i = 0; i < DataList1.Items.Count; i++)
        {
            int row =i ; //i / 2 2为每行显示的列数
            if (row % 2 == 0)
            {
                DataList1.Items[i].CssClass = "testf";
            }
            else
            {
                DataList1.Items[i].CssClass = "tests";
            }
        }

相关文章:

  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-11-29
  • 2022-12-23
相关资源
相似解决方案