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 @ 2018-03-27 14:19  全栈九九六  阅读(2794)  评论(0编辑  收藏  举报