Alternate Row Coloring in Django Template with More Than One Set of Rows

前端 未结 7 1174
广开言路
广开言路 2020-12-07 14:37

Django templates offer the builtin tag cycle for alternating between several values at different points in a template (or for loop in a template) but this tag d

7条回答
  •  醉酒成梦
    2020-12-07 15:09

    The easiest answer might be: "give up and use jQuery." If that's acceptable it's probably easier than fighting with Django's templates over something so simple.

提交回复
热议问题