I would like to know how the style differently consists of two parts of the text in the same input type = text, like Google. When you enter a couple of characters in the Google search box, they are displayed in plain black, but they are then prompted to complete in gray. So, we have two parts with different font properties in the same input field.
The text input is monochrome - there is no way around this. An effect like this can only be achieved with Javascript cheating.
Google div , . div , , . , . .
div
, , ... . , jQuery.
Google , ? , , . , , . , div - , .
Google uses two text fields directly above each other. They have different text colors, and the top is transparent. Look at it using Firebug to find out how it works.
Source: https://habr.com/ru/post/1763954/More articles:Получить предупреждение для строковых литералов python, не имеющих префикса 'u' - pythonEnabling specific emacs modes or features * almost * always - emacsCan I get the print statement in pythonw? - pythonautomatically generates a low battery warning in Android - androidПроблема кэширования с асинхронной загрузкой javascript с событием onload - javascriptCalling an Oracle stored procedure from Java - javaI put TLFTextField at the stage, but I can not access it through the code - flashfirefox + flash disabled the ALT GR key: how to solve this? - firefoxProblem with my bash script - bashОбъявление Admob не будет отображаться в диалоговой тематической деятельности - javaAll Articles