.NET ------ 禁止文本输入的三种方式
摘要:1、借助 Enabled="false" 属性,下拉框,文本框均可禁止输入,不过禁止之后文本框颜色为灰 页面样式 2、借助 onfocus ="this.blur()" 事件,下拉框不能,文本框可禁止输入,好处文本框禁止后颜色为白,不是灰色 onfocus 事件表示在对象获得焦点时发生,借助鼠标定位
阅读全文
posted @ 2021-07-28 17:06
obge
posted @ 2021-07-28 17:06
posted @ 2021-07-22 18:11
posted @ 2021-07-09 00:17
posted @ 2021-07-07 10:14
posted @ 2021-07-06 23:43