【发布时间】:2011-04-12 12:51:22
【问题描述】:
jsf:
<rich:dataTable id="files" styleClass="table" headerClass="header"
value="#{file}" var="fileRecord" rendered="#{file.rowCount>0}"
rowClasses="even,odd" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
<rich:column>
前提条件:
有带白色和灰色行的斑马样式表
步骤:
1.鼠标悬停在行上,悬停正常
2.鼠标移开,变成白色
后置条件: 表失去了“斑马”
发生这种情况是因为 #{a4jSkin.tableBackgroundColor} 评估为白色。
如何保持斑马造型?
感谢您的帮助。
【问题讨论】:
标签: jsf richfaces mouseover zebra-striping