📄 inputcss.js
字号:
window.onload = function()
{
var txtInput = document.getElementsByTagName("input");
for(var i=0; i<txtInput.length; i++){
switch(txtInput[i].type){
case "button":
if(txtInput[i].className.substr(0,6)!="button"){
txtInput[i].className ="btn_2k3";
}
break;
case "password":
txtInput[i].className="inputText";
txtInput[i].onfocus=function(){this.className = "inputTextFocus"} ;
txtInput[i].onblur=function(){this.className = "inputText"} ;
break;
case "text":
txtInput[i].className="inputText";
txtInput[i].onfocus=function(){this.className = "inputTextFocus"} ;
txtInput[i].onblur=function(){this.className = "inputText"} ;
break;
case "file":
txtInput[i].className ="btn";
break;
case "submit":
txtInput[i].className ="btn_2k3";
break;
case "file":
break;
case "reset":
txtInput[i].className ="btn_2k3";
break;
default:
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -