Styling letters of a word within an input differently, possible?

前端 未结 4 1280
独厮守ぢ
独厮守ぢ 2021-02-06 04:08

Wondering if this is even possible, but if I have a input containing text, for example lets say the word \'Test\' is in the input. What I would like to be able to do is change

4条回答
  •  醉话见心
    2021-02-06 04:38

    If you take a look at the MDN CSS Reference you can see for yourself that there is no selector for single letters inside a field.

    The best you can do is use :first-letter

    But As you can see it does not work on

提交回复
热议问题