Multiple font colors in an Input tag

后端 未结 1 479
感情败类
感情败类 2021-01-19 20:03

I\'m curious as to how Google\'s instant search feature maintains two separate font colors within a single input[type=text] element. Black for the user input an

1条回答
  •  隐瞒了意图╮
    2021-01-19 20:09

    They simply overlay another

    at the same location. Fire up Firebug, IE Dev Tools or whatever and look for the
    with id='grey'.

    Text - hello world
    Text - hello w

    0 讨论(0)
提交回复
热议问题