【问题标题】:JSF and Richfaces rich:select and f:selectItemsJSF 和 Richfaces rich:select 和 f:selectItems
【发布时间】:2012-09-12 16:45:59
【问题描述】:

如何使用 JSF 和 Richfaces 以不同颜色突出显示列表中的元素

【问题讨论】:

    标签: java jsf richfaces


    【解决方案1】:

    您可以尝试在rich faces docs(即.rf-dt-r)中显示的表格行选择器上使用jQuery奇数和偶数选择器并应用不同的类。

    类似:

    <script>
    $(document).ready(function()
    {
    
      //for table row
      $("tr:even").css("background-color", "#F4F4F8");
      $("tr:odd").css("background-color", "#EFF1F1");
    });
    </script>
    

    如this 页面所示。​​

    【讨论】:

      猜你喜欢
      • 2011-07-11
      • 2014-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-09
      • 2013-04-15
      • 2013-12-06
      相关资源
      最近更新 更多