如何仅使用Compass css为特定浏览器指定规则

时间:2015-02-14 12:52:11

标签: css css3 sass compass

我在我的CSS中使用Compass,我正在尝试指定我的Sass Css的一部分仅在Chrome中运行。我试过了@include with-prefix,但似乎没有用。无论如何,仅针对特定浏览器运行这些特定动画,在本例中为chrome?

@include with-prefix(-webkit) {
            .slideFromRight {

                &.ng-enter {
                    @include animation(slideFromRight ease $animationSpeed);
                    @include animation-iteration-count(1);
                    @include transform-origin(0 0);
                    @include animation-fill-mode(forwards);
                }

                &.ng-leave {
                    position: fixed;
                    @include animation(slideToLeft ease $animationSpeed);
                    @include animation-iteration-count(1);
                    @include transform-origin(0 0);
                    @include animation-fill-mode(forwards);
                }
            }
        }

0 个答案:

没有答案