sass 悬浮除最后一个之外的所有子元素

      button {
        width: 120px;
        height: 32px;
        border: 1px solid #253e6e;
        color: white;
        font-weight: 600;
        box-shadow: inset 0 32px #102e5e;
        transform: skewX(-30deg);
        &:hover { //悬浮
          &:not(:last-child) { //排除最后一个样式
            @include mehtod-active; //插入样式
          }
        }
      }

 

posted @ 2021-06-07 16:15  Tang_Qin  阅读(549)  评论(0)    收藏  举报