<input type = text readonly = true>
<input type = text onfocus = blur()>
两种方法

解决方案 »

  1.   

    <input type="text" readonly>
      

  2.   

    <html><head><title>New Page 1</title>
    </head><body><form method="POST" action="">
     
      <p><input type="text" name="T1" size="20" readonly=ture></p>
      <p><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></p>
    </form></body></html>
      

  3.   

    <INPUT TYPE="text" NAME="" VALUE="aaaaa" READONLY>
      

  4.   

    是的,直接加入属性:readonly
      

  5.   

    <input type=text readOnly>
      

  6.   

    <input type=text readonly>
    或<input type=text disable>