提供一个css实现箭头,三角形

<!DOCTYPE html>
<html>
  <style>

.c7ncd-pipeline-scroll {
  display: inline-flex;
  padding: 0 14px;
  min-width: 100%;
}
.c7ncd-pipeline-title-head {
  padding-left: 12px;
  color: #4d90fe;
  background: rgba(77, 144, 254, 0.08);
  position: relative;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 60px;
  -ms-flex: 0 0 60px;
  flex: 0 0 60px;
  height: 36px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  width: 270px;
  padding: 10px 12px 10px 30px;
  background: #f4f4f4;
  border-top: 2px solid;
  border-bottom: 2px solid;
}
.c7ncd-pipeline-title-head::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
}
.c7ncd-pipeline-title-head::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -2px;
    width: 0;
    height: 0;
    border-left: 20px solid #f4f4f4;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    z-index: 1;
}
.arrow-tail::before {
    top: 12.5px;
    left: -8px;
    content: "";
    z-index: 2;
    position: absolute;
    width: 36px;
    height: 0;
    border-top: 2px solid;
    -webkit-transform: rotate(56deg);
    -ms-transform: rotate(56deg);
    transform: rotate(56deg);
}
.arrow-tail::after {
    bottom: 12.5px;
    left: -8px;
    -webkit-transform: rotate(-56deg);
    -ms-transform: rotate(-56deg);
    transform: rotate(-56deg);
    content: "";
    z-index: 2;
    position: absolute;
    width: 36px;
    height: 0;
    border-top: 2px solid;
    -webkit-transform: rotate(56deg);
    -ms-transform: rotate(56deg);
    transform: rotate(126deg);
}
.arrow-head::before {
    top: 12.5px;
    right: -28px;
    content: "";
    z-index: 2;
    position: absolute;
    width: 36px;
    height: 0;
    border-top: 2px solid;
    -webkit-transform: rotate(56deg);
    -ms-transform: rotate(56deg);
    transform: rotate(56deg);
}
.arrow-head::after {
    bottom: 12.5px;
    right: -28px;
    -webkit-transform: rotate(-56deg);
    -ms-transform: rotate(-56deg);
    transform: rotate(-56deg);
    content: "";
    z-index: 2;
    position: absolute;
    width: 36px;
    height: 0;
    border-top: 2px solid;
    -webkit-transform: rotate(56deg);
    -ms-transform: rotate(56deg);
    transform: rotate(124deg);
}
  </style>
<body>

  <script>
   

  </script>

  <div class="c7ncd-pipeline-scroll">
    <div class="c7ncd-pipeline-title-head">
      <div class="arrow-tail arrow-tail_unexecuted">

      </div>
      <div class="arrow-head arrow-tail_unexecuted">

      </div>
    </div>
    <div class="c7ncd-pipeline-title-head" style="margin-left: 30px;">
      <div class="arrow-tail arrow-tail_unexecuted">

      </div>
      <div class="arrow-head arrow-tail_unexecuted">

      </div>
    </div>
  </div>

</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值