
使用方法非常简单:
.btn{cursor: not-allowed;}但是,这里必须说明:跟 pointer-events 同时使用会影响cursor的形状,比如“pointer-events:none;cursor:not-allowed;”后, cursor:not-allowed 的鼠标形状不会改变为上图的鼠标样式,而只是变成了默认的鼠标箭头样式了。
.btn{cursor: not-allowed;}但是,这里必须说明:跟 pointer-events 同时使用会影响cursor的形状,比如“pointer-events:none;cursor:not-allowed;”后, cursor:not-allowed 的鼠标形状不会改变为上图的鼠标样式,而只是变成了默认的鼠标箭头样式了。