Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在输入时将输入更改为大写
是否可以使用 JavaScript 将输入的文本完全大写。
所以基本上当用户在输入中输入文本时,文本被大写如下:CAPITALIZE
谁能给我看一个关于小提琴之类的例子吗?谢谢
您可以通过分配给您的文本框样式来使用 CSS,text-transform: uppercase;
text-transform: uppercase;