答案 0 :(得分:1)
来自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用户指南页面:433 Primefaces使用jquery的水印。查看here了解详情。
试试这个:
input::-webkit-input-placeholder {
color: red !important;
}
注意:以上内容仅适用于链接中提到的某些浏览器。我在chrome
和IE7
上进行了测试,它在Google Chrome
但不在Internet Explorer