Ändern Sie die Platzhalterfarbe einer HTML5-Eingabe mit CSS (20) Implementierung . Note: The placeholder pseudo-class is going to match input elements which show a placeholder text. Use this pseudo-class to style an input that is currently displaying the placeholder text -- in other words, the user has not typed anything in the textbox It's great to apply some dynamic styling depending if your input is empty or not input:placeholder-shown {border-color: pink;} How does it work? The placeholder is a text displayed in the input field before user enter the value as a short hint. IE9 ~ 6でもplaceholder属性を使えるようにする方法. Um den HTML-Placeholder mit CSS ansprechen und gestalten zu können existiert ein eigener CSS-Selektor. 2353. The explanation and uses notes are as below: WebKit and Blink browsers (Safari, Google Chrome, Opera 15+) are using a pseudo-element: ::-webkit-input-placeholder. Moderne Webseiten erfordern, dass auch die Kontaktformulare mit den entsprechenden Placeholder Texte gestaltet werden. For example, use md:placeholder-opacity-50 to apply the placeholder-opacity-50 utility at only medium screen sizes and above. 参考. Use the ::placeholder pseudo-element to style your placeholder text in an or