css禁止点击事件

将禁用的按钮灰掉的效果

.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
}

选中的按钮

.disabled.is-active {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
}

css禁止点击事件

posted @ 2020-11-26 21:45  易函123  阅读(3506)  评论(0编辑  收藏  举报