效果如图:
.action :nth-child(n+2)::before{
padding:0 5px;
content: ‘|’;
}
html如下:
css除第一个子元素以外的元素的选择器
最新推荐文章于 2023-11-13 14:02:15 发布
效果如图:
.action :nth-child(n+2)::before{
padding:0 5px;
content: ‘|’;
}
html如下: