//用的scss,确定的是border-bottom: solid 10px #e6e6e6;
生效的,想把最后一个item下边线去掉,我一下两种写法都不生效,感觉没啥问题啊
.description-item {
border-bottom: solid 10px #e6e6e6;
&:last-child{
border: none;
}
}
.description-item:last-child{
border: none;
}
//用的scss,确定的是border-bottom: solid 10px #e6e6e6;
生效的,想把最后一个item下边线去掉,我一下两种写法都不生效,感觉没啥问题啊
.description-item {
border-bottom: solid 10px #e6e6e6;
&:last-child{
border: none;
}
}
.description-item:last-child{
border: none;
}
10 回答11.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
3 回答5.1k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
先加!important看看是不是优先级不够,如果是的话考虑加入其他选择器提升优先级,然后去掉important
如果不是的话看看是不是有别的border,其实已经生效了(看盒子模型可以排除
css优先级:https://specifishity.com/spec...