使用css禁用input

583 阅读1分钟

普通禁用 使用 disabled 属性

<input type="text" disabled>

使用css

input{
        pointer-events: none;
    }