ul{
      margin-bottom: 20px;
      & >li {
          margin-bottom: 0;
      }
}

& 表示嵌套的上一级
这是sass的语法,代表上一级选择器
解释成CSS代码如下

ul{margin-bottom: 20px;}
ul > li {margin-bottom: 0;}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2022-12-23
猜你喜欢
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-01-08
  • 2022-12-23
  • 2021-06-05
相关资源
相似解决方案