设置输入框为只读属性,修改背景色,伪装成可以输入状态,在输入框获取焦点时移除只读属性,完美兼容各主流浏览器,亲测有用
<input type="text" readonly="" onfocus="this.removeAttribute('readonly');" style="background: #fff">
设置输入框为只读属性,修改背景色,伪装成可以输入状态,在输入框获取焦点时移除只读属性,完美兼容各主流浏览器,亲测有用
<input type="text" readonly="" onfocus="this.removeAttribute('readonly');" style="background: #fff">