1. .mixinName1() {
    2. width: 100px;
    3. height: 100px;
    4. color: red;
    5. background: blue;
    6. }
    7. div {
    8. .mixinName1;
    9. }
    10. .mixinName2(@width: 10px, @height: 10px, @color: purple, @background: yellowgreen) {
    11. width: @width;
    12. height: @height;
    13. color: @color;
    14. background: @background;
    15. }
    16. p {
    17. .mixinName2(50px, 50px, yellow, skyblue url() no-repeat);
    18. }
    19. ul {
    20. .mixinName2();
    21. li {
    22. .mixinName2(@color: red, @background: green);
    23. }
    24. }
    div {
      width: 100px;
      height: 100px;
      color: red;
      background: blue;
    }
    p {
      width: 50px;
      height: 50px;
      color: yellow;
      background: skyblue url() no-repeat;
    }
    ul {
      width: 10px;
      height: 10px;
      color: purple;
      background: yellowgreen;
    }
    ul li {
      width: 10px;
      height: 10px;
      color: red;
      background: green;
    }