How to make cross browser gradient mixin in compass, with IE9, IE8, IE7 and Opera?

后端 未结 2 950
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-14 11:47

I want to make mixin for all browser including IE9 IE9, IE8, IE7 and Opera.

Like http://www.colorzilla.com/gradient-editor/ generate the code

it generate

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-14 12:31

    First of all give these a try in your _base.scss

    @import "compass/support";
    $legacy-support-for-ie7: true;
    $legacy-support-for-ie8: true;
    $experimental-support-for-microsoft: true;
    $experimental-support-for-pie: false;
    $experimental-support-for-svg: true;
    

    Then add in

    @import filter-gradient($start-color, $end-color, $orientation)

提交回复
热议问题