先看类型效果:
代码:
//html部分
<div class="cursor-not-allowed">
<div class="card-disabled"></div>
</div>
//css部分
//因为给标签设置了pointer-events属性后设置cursor: not-allowed;无效果 所以需要设置两个标签展示效果
.cursor-not-allowed {
cursor: not-allowed;
background: #cecbcb;
opacity: 0.7;
}
.card-disabled {
pointer-events: none;
}