首页 > Web开发 > 详细

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

时间:2019-09-18 12:14:43      阅读:218      评论:0      收藏:0      [点我收藏+]

 

<div class="inputReportIndex">
    <div class="inner">
      <div class="left">
        <Card :bordered="false" style="height: 48%;">1</Card>
        <div style="height: 4%;"></div>
        <Card :bordered="false" style="height: 48%;">1</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: 100%; height: 100%;
    .inner {
      width: 88%; height: 88%;
      .left{
        width: 62%;
        height: 100%;
        float: left;
      }
      .right{
        width: 35%;
        height: 100%;
        float: right;
        > .ivu-card {
          height: 100%;
          position: relative;
          > .ivu-card-body {
            height: 100%;
            position: relative;
            z-index: 99;
          }
          &::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            transform: translate(-50%, -50%) rotate(45deg);
            width: 25px;
            height: 25px;
            background: #fff;
            transition: all 0.2s ease-in-out;
          }
          &:hover::after {
            box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.11);
          }
        }
      }
    }

  }

 

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

原文:https://www.cnblogs.com/pengchenggang/p/11540750.html

(2)
(2)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!