遇到一个问题求助大家,在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;"
,发现都不好用,input
里面的内容还是可以被选中,对了,最好不要用disabled
龙禅
holdtom
相关分类