【问题标题】:How set a table row's attribute class dynamically with clojure/enlive?如何使用 clojure/enlive 动态设置表行的属性类?
【发布时间】:2011-08-25 12:01:58
【问题描述】:

我使用 enlive 模板引擎创建了一个表。我所做的是创建一个单表行并将该行重复到动态需要的行数。但是,我在更新每一行的属性class 时遇到了一些问题。

如何动态地为每个表行设置class 属性,比如说偶数方式?

【问题讨论】:

    标签: java html clojure template-engine enlive


    【解决方案1】:

    enlive 邮件列表中有一个thread,Christophe Grand 解释了如何执行此操作。

    我也觉得如果you can 使用nth-child selector 会更干净。

    【讨论】:

      猜你喜欢
      • 2022-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多