遇到一個問題求助大家,在mousedown的情況下,如何讓chrome下input輸入框禁止選中,代碼如下,用的是vue<input type="text" unselectable='on' onselect="return false" name="" class="form-control input-slider" v-model='options.current' style="-moz-user-select:none;-webkit-user-select:none;">試了unselectable,onselect,style="-moz-user-select:none;-webkit-user-select:none;",發(fā)現(xiàn)都不好用,input里面的內(nèi)容還是可以被選中,對了,最好不要用disabled
chrome下input輸入框如何禁止選中(不用disabled)
皈依舞
2018-10-24 18:11:05