placeholderの文字色(webkit、moz、ms)

::-webkit-input-placeholder{ color:#bbb; } :-moz-placeholder{ color:#bbb; } :-ms-input-placeholder{ color:#bbb; }

1 Response

You will also need ::-moz-placeholder selector for Firefox 19+. It may also be helpful to include an opacity of 1 (opacity: 1) with the Firefox styles because it is set to 0.4 by default. Great snippet! Thanks for sharing!

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.