Css 新的Compass前缀Mixin语法不起作用
尝试在Css 新的Compass前缀Mixin语法不起作用,css,sass,compass-sass,Css,Sass,Compass Sass,尝试在compass1.0.0.alpha.16上为指针事件创建混入时失败,并显示找不到实验混入: @mixin pointer-events($type: none) { $type: unquote($type); @include experimental(pointer-events, $type, -moz, -webkit, not -o, not -ms, -khtml, official ); } 因此,在深入研究compass样式表之后,我发现大多数mix
compass1.0.0.alpha.16
上为指针事件创建混入时失败,并显示找不到实验混入:
@mixin pointer-events($type: none) {
$type: unquote($type);
@include experimental(pointer-events, $type,
-moz, -webkit, not -o, not -ms, -khtml, official
);
}
因此,在深入研究compass样式表之后,我发现大多数mixin使用和-each-prefix()
和prefix prop
的组合。我试图模仿,但失败了,错误如下:
Mixin前缀prop缺少参数$value
我做错了什么?非常感谢您的帮助。我认为指针事件从不使用前缀。我从未见过它的前缀版本。Cany I Use不会将任何浏览器列为指针事件使用前缀(当前或过去):@cinnimon-看起来像-IE Mobile需要ms
。那么,您将如何创建这个mixin呢?
/* =============================================================================
Pointer events mixin
========================================================================== */
@mixin pointer-events($type: none) {
$type: unquote($type);
@include with-each-prefix(pointer-events, $graceful-usage-threshold) {
@include prefix-prop(pointer-events, $type, -moz);
};
}