xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

disable html input & pointer-events

disable html input & pointer-events

css

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

https://css-tricks.com/almanac/properties/p/pointer-events/

how to disable input field in css


.avoid-clicks {
  pointer-events: none;
}



js

how to disable input field in js

https://stackoverflow.com/questions/12896698/how-to-disable-an-input-field-using-javascript




posted @ 2020-04-12 17:17  xgqfrms  阅读(144)  评论(2编辑  收藏  举报