我正在使用一个<input>字段,我想在用户输入不同颜色时设置字段的一部分.例如,假设<input>有一个样式声明,color: red;我想将其中的一部分更改为color: blue;.这有可能吗?
<input>
color: red;
color: blue;
如果没有(我怀疑),关于如何在保留语义标记的同时模拟这种效果的任何创意?
html css forms input
css ×1
forms ×1
html ×1
input ×1