css 实现元素选中右下角小对勾

.select {
            position: relative;
            width: 81px;
            height: 93px;
            margin: 0 auto;
            text-align: center;
            line-height: 93px;
            color: #4ABE84;
            background-color: #fff;
            box-shadow: 0px 2px 7px 0px rgba(85, 110, 97, 0.35);
        }
        .select:before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            border: 17px solid #4ABE84;
            border-bottom-color: transparent;
            border-left-color: transparent;
        }
        .select:after {
            content: '';
            width: 4px;
            height: 10px;
            position: absolute;
            right: 6px;
            top: 3px;
            border: 2px solid #fff;
            border-top-color: transparent;
            border-left-color: transparent;
            transform: rotate(35deg); 
        }


 

posted @ 2022-08-12 17:25  虚无——缥缈  阅读(450)  评论(0编辑  收藏  举报