1

jSF 2.0-PrimeFacesアプリケーションでは、コンポーネントを使用しており、コンポーネントのテキストの色を変更する必要があります。

サンプルはここにあります

JSF 2-PrimeFacesコンポーネントのテキストの色を変更するにはどうすればよいですか?

4

1 に答える 1

2

プライムフェイスのドキュメントから:

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 の透かしを使用しています。詳しくはこちらをご覧ください。

これを試して:

  input::-webkit-input-placeholder {
          color: red !important;
       }

:リンクに記載されているように、上記は一部のブラウザでのみ機能します。でテストしましたがchrome、で動作していIE7ますが、では動作してGoogle ChromeいませんInternet Explorer

于 2012-09-29T08:50:16.467 に答える