xxxx.type == "text"
xxxx.type == "button"

解决方案 »

  1.   

    能详细一点么
    要求只修改css文件
      

  2.   

    <head>
    <style>
    input{background-color:expression(this.type=="text"?'#ffffff':'#ccccff') } 
    </style>
    </head>
    <input type=text>
    <input type=button value=fason>
      

  3.   

    fason(阿信):
    高手!我用this.type=="button"怎么就没用了
    this.type=="text"倒是有效
      

  4.   

    不会呀,
    <head>
    <style>
    input{background-color:expression(this.type=="button"?'#ffffff':'#ccccff') } 
    </style>
    </head>
    <input type="text">
    <input type="button" value=fason>
    可以用,ie6