您现在的位置: 万盛学电脑网 >> 程序编程 >> 网页制作 >> 交互设计 >> 正文

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

作者:佚名    责任编辑:admin    更新时间:2022-06-22

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