我在我的应用程序中使用primefaces数据表,根据业务用户的要求,他们希望通过单击列标题而不是'<>'进行排序排序图标,但在排序过程中仍然可以看到'/ \'或'/'图标。如何自定义primefaces css属性?我试图修改这个css属性但无法获得正确的结果。
.ui-icon {
width: 16px;
height: 16px;
background-image:none ;
display: block;
text-indent: -99999px;
overflow: hidden;
background-repeat:repeat;
}
答案 0 :(得分:3)
将其放入CSS文件
#yourTableId th .ui-sortable-column-icon{
display : none;
}
或者将其放在JS文件中
jQuery('#yourTableId th .ui-sortable-column-icon').css({"display":"none"});