![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset =utf-8"> <title>测试大小写转换</title> </head> <body> 大写:<input type="text" value="" onkeyup="this.value=this.value.toUpperCase()"> <br/> 小写: <input type="text" value="" onkeyup="this.value=this.value.toLowerCase()"> </body> </html>