gpt4 book ai didi

css - 我怎样才能实现 li :last-child with less?

转载 作者:技术小花猫 更新时间:2023-10-29 11:15:20 26 4
gpt4 key购买 nike

我有以下 CSS:

ul.arbo {
margin-top: 0.5em;
}
ul.arbo li {color
padding-bottom: 0.333em;
}
ul.arbo li:last-child {
color: #333;
}

我可以使用 Less 实现简单的 CSS。但是我该如何实现 li:last-child?

最佳答案

尝试:

ul.arbo {
margin-top: 0.5em;

li {
color: #444;
padding-bottom: 0.333em;

&:last-child {
color: #333;
}
}
}

关于css - 我怎样才能实现 li :last-child with less?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13991669/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com