Less 没有找到第一个子选择器
Less is not finding first child selector
我把这段代码写在一个 less 文件中:
.page-cartPage .jc-banner .row-height > .col-xs-12:first-child {
display: none; }
但我没有看到正确的行为。
这个写的少吗?
这是纯粹的 CSS,你可以做的是,尝试获取你想要 display:none 的 div 的父 div 然后像我的例子一样:
.myparent .col-xs-12:first-child{
display:none;
}
希望对你有所帮助。
我把这段代码写在一个 less 文件中:
.page-cartPage .jc-banner .row-height > .col-xs-12:first-child {
display: none; }
但我没有看到正确的行为。 这个写的少吗?
这是纯粹的 CSS,你可以做的是,尝试获取你想要 display:none 的 div 的父 div 然后像我的例子一样:
.myparent .col-xs-12:first-child{
display:none;
}
希望对你有所帮助。