首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

设立文本框为不可用

2012-08-22 
设置文本框为不可用以下为几种不同的“设置文本框为不可用”的方法:方法二: input id UserID type tex

设置文本框为不可用

以下为几种不同的“设置文本框为不可用”的方法:

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

相对于这几种方法而言,它们的效果和作用还是有差别的,自己可以逐一试看效果……

1 楼 zhangyaochun 2012-04-04   LZ的这个反了吧,visibility:hidden 是会占据位置的

可以参考:http://zhangyaochun.iteye.com/blog/1199554

热点排行