我需要能够减少变量
/* Opacity */
.opacity(@opacity: 0.35){
-moz-opacity: @opacity;
-khtml-opacity: @opacity;
-webkit-opacity: @opacity;
opacity: @opacity;
@ieOpacity: @opacity * 100;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=@ieOpacity)";
filter: ~"alpha(opacity=@ieOpacity)";
}
完成此操作后,.css 文件中的代码将如下所示(Opacity=@ieOpacity)