首页 > 其他分享 >双平行四边形箭头

双平行四边形箭头

时间:2023-02-01 11:22:05浏览次数:37  
标签:none color 50% height 箭头 平行四边形 20px border

 

<div class="stepArea">
<div class="stepItem" @click="changeCurrent(0)">
<div class="testShape" :class="current==0 ?'active':''">

</div>
<div class="testShape1" :class="current==0 ?'active':''">

</div>
<span :class="current==0 ?'active':''">填写问卷信息</span>
</div>
<div class="stepItem" @click="changeCurrent(1)">
<div class="testShape" :class="current==1 ?'active':''">

</div>
<div class="testShape1" :class="current==1 ?'active':''">

</div>
<span :class="current==1 ?'active':''">设置问卷内容</span>
</div>
</div>


-------------------
.stepArea{
margin: 0 0 20px 20px;
display: flex;
.stepItem{
position: relative;
margin-right: 56px;
.testShape{
width:420px;
height:20px;
transform: skewX(30deg);
text-align: center;
line-height: 20px;
border:1px solid #DCDEE0 ;
border-bottom: none;
&.active{
background-color: @color-primary;
border: none;
}
}
.testShape1{
width:420px;
height:20px;
transform: skewX(-30deg);
text-align: center;
line-height: 20px;
border:1px solid #DCDEE0 ;
border-top: none;
&.active{
background-color: @color-primary;
border: none;
}
}
span{
position: absolute;
left:50%;
top:50%;
font-size: 16px;
transform:translate(-50%,-50%);
&.active{
color: #FFFFFF;
}
}
}
}

标签:none,color,50%,height,箭头,平行四边形,20px,border
From: https://www.cnblogs.com/connie256/p/17081985.html

相关文章

  • 箭头函数与promise
    console.log("普通函数方式");vararr1=[1,2,3,4,5];arr1.forEach(function(e){console.log(e);});console.log("箭头函数......
  • AD原理图中双箭头作用?
      Off-PageConnector当然有意义,这表示电气连接的两端在不同的板子上,通过接插件互联,且箭头指向方为接入目标。举个例子:计算机主板的PCIE口上插一块显卡,画出完整的系统......
  • CSS的skewX()函数二维倾斜实现平行四边形按钮和梯形按钮组
    CSS的skewX()函数二维倾斜实现平行四边形按钮和梯形按钮组https://blog.csdn.net/DDD4V/article/details/122417369......
  • JavaScript普通函数与箭头函数有怎样的区别?
     比较点普通函数箭头函数具体案例简写/箭头函数如果没有参数,同时函数体的返回值只有一句,则{}和return都可以省略。1、函数简写......
  • css 实现箭头步骤条
    <!DOCTYPEhtml><htmllang="en"><head> <metacharset="UTF-8"> <metahttp-equiv="X-UA-Compatible"content="IE=edge"> <metaname="viewport"content="width=......
  • this和箭头函数的this
    https://www.cnblogs.com/lfri/p/11872696.htmlhttps://www.ruanyifeng.com/blog/2018/06/javascript-this.html......
  • vue3 封装t点击左右箭头实现内容滑动组件
    1、组件<template><divclass="switch-tab"><divclass="switch-tab-left"@click="leftClick"><el-icon:size="24"color="rgba(99,149,255,1)"><A......
  • JavaScript:箭头函数:省略写法
    之所以把箭头函数拎出来,是因为它不仅仅是声明函数的一种方式,它还是函数式编程的重要根基,它使得函数的使用更加的灵活,同时,它的语法,也相对于function声明的函数更加灵活和复......
  • JavaScript:箭头函数:作为参数进行传参
    之前已经说过,JS的函数,也是对象,而函数名是一个变量,是可以进行传参的,也即函数是可以被传参的。只要是函数,都可以被传参,但是箭头函数的语法更为灵活,所以更方便进行传参。如......
  • vue 带箭头下拉框
    css代码.droplist-content{display:flex;flex-direction:column;font-size:0.12rem;font-family:PingFangSC-Regular,PingFangSC;font-weight:400;c......