zoukankan      html  css  js  c++  java
  • input 只读不能修改

    方法1: onfocus=this.blur() 
    <input type="text" name="input1" value="中国" onfocus=this.blur()> 

    方法2:readonly 
    <input type="text" name="input1" value="中国" readonly> 

    <input type="text" name="input1" value="中国" readonly="true"> 

    方法3: disabled 
    <input type="text" name="input1" value="中国" disabled>

  • 相关阅读:
    每日总结
    每日总结
    每日总结
    每日总结
    每周总结
    每日总结
    10.20
    10.19
    10.18
    10.17
  • 原文地址:https://www.cnblogs.com/wqing/p/4217935.html
Copyright © 2011-2022 走看看