我有以下的SCSS混合体,我大概会写出太多的多余:
@mixin radius($topleft, $topright: $topleft, $bottomright: $topleft, $bottomleft: $topleft) {
-moz-border-radius-topleft: $topleft;
-moz-border-radius-topright: $topright;
-moz-border-radius-bottomright: $bottomright;
-moz-border-radius-bottomleft: $bottomleft;
-webkit-border-radius: $topleft $topright $bottomright $bottomleft;
border-radius: $topleft $topright $bottomright $bottomleft;
}
指出这些论点可以具有单一价值,适用于所有方面,或所有4个用于定制。