我想p:rowEditor
用任何 Primefaces 主题(如 Sentinel)提供的图标(铅笔等)自定义图标(见此处:[ https://www.primefaces.org/eos/sentinel/font-icons.xhtml][1] )
我编辑了我的自定义 CSS 文件,并尝试覆盖将 CSS 元素复制到 Sentinel 主题 CSS 文件中的行编辑器类,因此结果如下:
.ui-datatable table tbody tr td .ui-row-editor .ui-icon-pencil
{
background: none !important;
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
}
.ui-datatable table tbody tr td .ui-row-editor .ui-icon-pencil:before {
content: '\e851';
}
没有机会让它工作。我看到都是空白。也许我需要调整任何位置属性?有什么建议吗?谢谢!