使用Laravel 5.4项目的Firefox中的CSS斜角过滤器

时间:2017-08-22 04:26:25

标签: css firefox svg laravel-5.4

Laravel项目中正确解析的firefox斜角过滤器在css中的正确语法是什么?我read here问题的原因以及建议的解决方案。

我试过了:

filter: url(#bevel);             <-- resolves the image but no bevel filter
filter: url(../index#bevel);     <-- resolves the image but no bevel filter
filter: url(index.php#bevel);    <-- resolves the image but no bevel filter
filter: url(index.html#bevel);   <-- does not show image at all

内联SVG中的bevel过滤器:

        <filter id="bevel" filterUnits="objectBoundingBox" x="-10%" y="-10%" width="150%" height="150%">
            <feGaussianBlur in="SourceAlpha" stdDeviation="0.5" result="blur"/>
            <feSpecularLighting in="blur" surfaceScale="5" specularConstant="0.5" specularExponent="10" result="specOut" lighting-color="white">
                <fePointLight x="-5000" y="-5000" z="8000"/>
            </feSpecularLighting>
            <feComposite in="specOut" in2="SourceAlpha" operator="in" result="specOut2"/>
            <feComposite in="SourceGraphic" in2="specOut2" operator="arithmetic" k1="0" k2="1" k3="1" k4="0" result="litPaint" />
        </filter>

这就是Firefox在其inspect

中所说的内容
#map-user-online-svg, #map-user-offline-svg {
    -webkit-filter: url(../big-risk#bevel);
    filter: url(../big-risk#bevel);      <-- could not load the image
    fill: white;
}

0 个答案:

没有答案