css用expression来区分只读文本框

  •   2009-07-31/13:28
  • <style type="text/css">
    <!--

    input{ background:expression((this.readOnly &&this.readOnly==true)?"#CCCCCC":"")}
    -->
    </style>

    <body>
    <input type="text" name="" />
    <input type="text" name="" readonly="readonly" />

     

    expression:处理方式:

         expression(操作手法);

           expression(?:)


    评论 {{userinfo.comments}}

    {{money}}

    {{question.question}}

    A {{question.A}}
    B {{question.B}}
    C {{question.C}}
    D {{question.D}}
    提交

    驱动号 更多