css控制input不同类型的不同样式

input{background:expression(this.type=="text"?'#ffffff':'#ccccff')}
原文地址:https://www.cnblogs.com/sky266/p/925761.html