css3/sass 样式记录

css3

width: calc(50% - 10px)

sass

1、奇偶行

.classNameA {
  background:red;
  &:nth-child(even) {
    background:green;
  }
}

猜你喜欢

转载自www.cnblogs.com/liujinyu/p/11573547.html