.tree-container .el-icon-caret-right:before{
background: url("../../assets/repeat/icon_open.png") no-repeat;
content: '';
display: block;
width: 18px;
height: 18px;
font-size: 18px;
background-size: 18px;
}
vue tree改变icon
最新推荐文章于 2024-07-17 11:59:43 发布
本文介绍了一种使用CSS背景图片和伪元素实现图标显示的方法,通过设置背景图片、内容为空的块级显示伪元素,以及精确的宽高和字体大小,可以实现在网页中灵活展示图标。
1万+

被折叠的 条评论
为什么被折叠?



