可以只对输入字段的特定文本进行样式设置吗?
Assuming, I have an input field <input value="some text"/>
, is it possible to style only the text 'some' but not 'text'?
如果没有,有哪些替代方案?
可以只对输入字段的特定文本进行样式设置吗?
Assuming, I have an input field <input value="some text"/>
, is it possible to style only the text 'some' but not 'text'?
如果没有,有哪些替代方案?
不幸的是,这不可能,因为样式已应用于输入字段的整个内容。
Here someone suggested a tricky "solution" to simulate the behaviour, but it's far from being something recommended or built-int.