简体   繁体   中英

Nesting > (greater than) in Less-CSS

In LESS-CSS, this:

.a {
  .b {
    font-color:red;
  }
}

is equivalent to

.a .b {
  font-color:red;
}

Is there an nested equivalent of > ?

.a > .b {
  font-color:red;
}

This does it:

.a {
  > .b {
    font-color:red;
  }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM