让input变成不可编辑状态的方法

<input name="ly_qq" type="text" tabindex="2" onMouseOver="this.className='input_1'" onMouseOut="this.className='input_2'" value="123456789" disabled="true" readOnly="true" /> 


disabled="true "此果文字会变成灰色,不可编辑。

readOnly="true" 文字不会变色,也是不可编辑的

posted on 2017-03-27 11:24  胡樟军  阅读(2064)  评论(0编辑  收藏  举报

导航