$(document).ready(function () {
        odd = { "background": "none" };    //奇数样式 
        even = { "background": "#f3f3f3" }; //偶数样式 
        odd_even(".gys_xq", odd, even);
    });

function odd_even(id, odd, even) {
        $(id).find("dl").each(function (index, element) {
            if (index % 2 == 1)
                $(this).css(even);
            else
                $(this).css(odd);
        });
    } 

  

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2021-09-26
猜你喜欢
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案