elementUI 步骤条Steps 样式修改vue
官⽹原样式
修改完成样式
样式代码
style要写scoped 不然会效果作⽤不上,貌似>>>这个符号是强渗透的意思,强制向下去该样式
1
82届奥斯卡颁奖典礼
<div class="theSteps">2
<el-steps :active="2" align-center>3
健康管理师培训中心<el-step title="选择影⽚场次"></el-step>4
五年级上册英语第一单元<el-step title="选择座位"></el-step>5
<el-step title="14分钟内付款"></el-step>6
<el-step title="影院取票观影"></el-step>7 </el-steps>8 </div>
1<style scoped>主要看气质是什么意思
2.theSteps >>> .el-step__line {
3 position: absolute;
4 border-color: inherit;
5 background-color: #f03d37;
6 z-index: -50;
7}
8.theSteps >>> .el-step__head.is-finish {
freshmeat9 color: white;
10 border-color: #f03d37;
11}
12.theSteps >>> .el-step__head.is-wait {
13 color: white;
14 border-color: #f03d37;
15 opacity: 0.5;
16}
龙岩英语培训
麦克学摇滚>orion
17.theSteps >>> .el-step__head.is-process {
18 color: white;
19 border-color: #f03d37;
20}renavatio
21.theSteps >>> .el-step__title.is-process {
22 font-weight: 400;
23 color: #f03d37;
如何与人沟通24}
25.theSteps >>> .el-step__icon.is-text {
26 border-radius: 50%;
27 border: 2px solid;
28 border-color: inherit;
29 background-color: #f03d37;
30}
31.theSteps >>> .el-step__title.is-finish {
32 color: #f03d37;
33}
34.theSteps >>> .el-step.is-horizontal .el-step__line {
35 height: 2px;
36 top: 11px;
37 width: 290px;
38}
39</style>
⼤家如果有⼀些不知道class的name是什么,就打开浏览器控制台,把⿏标移动到元素⾝上,就可以查看该节点的classname