首页 前端知识 ElementUl 中时间线Timeline 的样式优化(左右分布)

ElementUl 中时间线Timeline 的样式优化(左右分布)

2024-03-01 12:03:21 前端知识 前端哥 60 195 我要收藏

修改后样式:

 生效代码:

// 右侧文本样式
::v-deep .el-timeline-item__content {
margin-left: 40%;
width: 60%;
// height: 50px;
padding-top: 5px;
}
// 时间样式
::v-deep .el-timeline-item__timestamp.is-bottom {
position: absolute;
top: 0;
margin-left: 8%;
}
::v-deep .el-timeline-item__timestamp {
height: 25px;
font-family: PingFangSC-Regular;
font-size: 18px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #666666;
}
// 竖线样式
::v-deep .el-timeline-item__tail {
position: absolute;
top: 5px;
left: 36%;
height: 100%;
width: 2px;
opacity: 0.2;
border-left: solid 3px #fd3c3c;
}
// 圆点样式
::v-deep .el-timeline-item__node--normal {
left: 35%;
width: 20px;
height: 20px;
background: url('../../img/radio-red.png') 0 0 /100% 100%;
}
复制

转载请注明出处或者链接地址:https://www.qianduange.cn//article/2996.html
标签
elementuiscss
评论
还可以输入200
共0条数据,当前/页
会员中心 联系我 留言建议 回顶部
复制成功!