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" 文字不会变色,也是不可编辑的

原文地址:https://www.cnblogs.com/yysbolg/p/8657210.html