现在的位置: 首页 > 综合 > 正文

如何把文本框设置为不可用的四种方法

2018年06月10日 ⁄ 综合 ⁄ 共 223字 ⁄ 字号 评论关闭

方法一: <input id= "UserID" type= "text" disabled/>   不可用
方法二: <input id= "UserID" type= "text" readonly/>   只读
方法三: <input id= "UserID" type= "text" style="display:none"/>   隐藏(不占位置)
方法四: <input id= "UserID" type= "text" style="visibility:hidden"/> 隐藏(占位置)

【上篇】
【下篇】

抱歉!评论已关闭.