elementUI步骤条Steps样式修改vue

官网原样式

修改完成样式

样式代码

 <div class="theSteps">
    <el-steps :active="2" align-center>
        <el-step title="选择影片场次"></el-step>
        <el-step title="选择座位"></el-step>
        <el-step title="14分钟内付款"></el-step>
        <el-step title="影院取票观影"></el-step>
    </el-steps>
 </div>

style要写scoped 不然会效果作用不上,貌似>>>这个符号是强渗透的意思,强制向下去该样式

<style scoped>
.theSteps >>> .el-step__line {
  position: absolute;
  border-color: inherit;
  background-color: #f03d37;
  z-index: -50;
}
.theSteps >>> .el-step__head.is-finish {
  color: white;
  border-color: #f03d37;
}
.theSteps >>> .el-step__head.is-wait {
  color: white;
  border-color: #f03d37;
  opacity: 0.5;
}
.theSteps >>> .el-step__head.is-process {
  color: white;
  border-color: #f03d37;
}
.theSteps >>> .el-step__title.is-process {
  font-weight: 400;
  color: #f03d37;
}
.theSteps >>> .el-step__icon.is-text {
  border-radius: 50%;
  border: 2px solid;
  border-color: inherit;
  background-color: #f03d37;
}
.theSteps >>> .el-step__title.is-finish {
  color: #f03d37;
}
.theSteps >>> .el-step.is-horizontal .el-step__line {
  height: 2px;
  top: 11px;
  width: 290px;
}
</style>

大家如果有一些不知道class的name是什么,就打开浏览器控制台,把鼠标移动到元素身上,就可以查看该节点的classname

  • 2
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值