在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;
}