Skip to content

1.4新增的extend方法使用 #14

Open

Description

@TooBug
.mix1{
    width:20px;
}

.mix2{
    width:30px;
}

.test1:extend(.mix1){

    color:#abc;

}

.test4{

    color:#abc;
    &:extend(.mix2);

}

Activity

  1. TooBug commented on Aug 20, 2013

    @TooBug
    ContributorAuthor

    好处:从之前的将mix中的规则复制到目标选择器中来,变为“复制选择器”到mix上去。可以在一定程度上减少复制规则带来的代码冗余。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions