作者:大布丁 | 来源:互联网 | 2023-05-16 23:43
Ihaveadivstructurethatlookslikethis:我有一个这样的div结构:<divclassjumbotronjumbotron-fluid
I have a div structure that looks like this:
我有一个这样的div结构:
And in my Sass file I am trying to hide all but the first of type for .slide
:
在我的Sass文件中,我试图隐藏除第一个类型的。slide:
.jumbotron {
background-color: $white;
color: $black;
margin-bottom: 0;
min-height: 100vh - $navbar-height;
.slide {
&:not(:first-of-type) {
display: none;
}
}
}
This seems to be hiding all the .slide
divs rather than "all but the first" as intended, doesn't it?
这似乎隐藏了所有的。slide divs,而不是“除了第一个以外的所有”,不是吗?
1 个解决方案