0

从文档https://github.com/sasstools/sass-lint/blob/develop/docs/rules/force-attribute-nesting.md#force-attribute-nesting

我改变

  a[title][href] {
    font-weight: bold;
  }

a {
  &[title][href] {
    font-weight: bold;
  }
}

但是无礼的剧照警告说,

属性选择器应该嵌套在其父属性选择器中(force-attribute-nesting)

4

1 回答 1

1

我只是在猜测,但我认为您必须分别嵌套这两个属性,如下所示:

a {
  &[title] {
    &[href] {
      ...
于 2018-02-22T16:05:29.317 回答