【问题标题】:Less is not finding first child selectorLess 没有找到第一个子选择器
【发布时间】:2018-07-03 03:13:42
【问题描述】:

我把这段代码写在一个 less 文件中:

.page-cartPage .jc-banner .row-height > .col-xs-12:first-child {
display: none; }

但我没有看到正确的行为。 这写得少吗?

【问题讨论】:

    标签: css-selectors less


    【解决方案1】:

    这是纯 CSS,你可以做的是,尝试获取你要显示的 div 的父 div:none 然后像我的示例一样制作:

    .myparent .col-xs-12:first-child{
         display:none;
    }
    

    希望对你有所帮助。

    【讨论】:

      猜你喜欢
      • 2016-08-22
      • 1970-01-01
      • 2013-08-28
      • 1970-01-01
      • 2014-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-08
      相关资源
      最近更新 更多