这是一段javascript代码,实现的功能是当你点击 name="input"的标签的时候,改变它的样式。 var oAtt = ["width","height","background","display","display"]; var oVal = ["200px","200px","red","none","block"];这里设置了改变的具体信息,宽度和高度改变为200px,背景改变为红色