左侧带三角的Card css支持hover阴影

寻技术 Html/CSS 2023年07月11日 77

 

<div class="inputReportIndex">
    <div class="inner">
      <div class="left">
        <Card :bordered="false" style="height: 48%;"></Card>
        <div style="height: 4%;"></div>
        <Card :bordered="false" style="height: 48%;"></Card>
      </div>
      <div class="right">
        <Card :bordered="false">
          <!--<div style="background-color: aqua; width: 100%; height: 100%;"></div>-->
        </Card>
      </div>
    </div>
  </div>

 

.inputReportIndex {
    display: flex; justify-content: center;align-items: center;width: %; height: %;
    .inner {
      width: %; height: %;
      .left{
        width: %;
        height: %;
        float: left;
      }
      .right{
        width: %;
        height: %;
        float: right;
        > .ivu-card {
          height: %;
          position: relative;
          > .ivu-card-body {
            height: %;
            position: relative;
            z-index: ;
          }
          &::after {
            content: "";
            position: absolute;
            top: %;
            left: ;
            transform: translate(-%, -%) rotate(45deg);
            width: 25px;
            height: 25px;
            background: #fff;
            transition: all .2s ease-in-out;
          }
          &:hover::after {
            box-shadow: -2px 2px 4px rgba(, , , 0.11);
          }
        }
      }
    }

  }

 

关闭

用微信“扫一扫”