方法1如:<input type="text" onKeyUp="this.value=this.value.toUpperCase();"> 方法2如:<input style="text-transform: uppercase"> 相关文章: