在我的jSF 2.0-PrimeFaces应用程序中,我使用的是component,我需要更改component中文本的颜色。
该样本可在here上找到
如何更改JSF2-PrimeFaces组件的文本颜色?
发布于 2012-09-29 08:50:16
来自primefaces文档:
There’s only one css style class applying watermark which is ‘.ui-watermark’, you can override this class to bring in your own style. Note that this style class is not applied when watermark uses html5 placeholder if available.
PrimeFaces用户ʼ指南页面:433Primefaces使用jquery的水印。有关更多信息,请查看here。
试试这个:
input::-webkit-input-placeholder {
color: red !important;
}
注意:上述功能仅适用于链接中提到的某些浏览器。我在chrome
和IE7
上测试了它,它在Google Chrome
中工作,但在Internet Explorer
中不起作用
https://stackoverflow.com/questions/12650974
复制相似问题