Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin ffimageloadingsvg:SvgCachedImage在解释SVG中的CSS时是否有与web不同的规则?_Xamarin_Svg_Xamarin.forms_Skiasharp_Ffimageloading - Fatal编程技术网

Xamarin ffimageloadingsvg:SvgCachedImage在解释SVG中的CSS时是否有与web不同的规则?

Xamarin ffimageloadingsvg:SvgCachedImage在解释SVG中的CSS时是否有与web不同的规则?,xamarin,svg,xamarin.forms,skiasharp,ffimageloading,Xamarin,Svg,Xamarin.forms,Skiasharp,Ffimageloading,以下是一个例子: 此SVG在Google Illustrator中工作,但在使用ffimageloadingsvg:SvgCachedImage时不在XF中工作 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <defs> <style type="text/css"> .cls-1 { fill: no

以下是一个例子:

此SVG在Google Illustrator中工作,但在使用ffimageloadingsvg:SvgCachedImage时不在XF中工作

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
    <defs>
        <style type="text/css">
            .cls-1 {
                fill: none;
            }
            .cls-2 {
                fill: none;
                stroke: #666;
                stroke-miterlimit: 10;
                stroke-width: 9px;
            }
        </style>
    </defs>
    <rect class="cls-1" width="512" height="512" />
    <circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
    <defs>
        <style type="text/css">
            .cls-1, .cls-2 {
                fill: none;
            }
            .cls-2 {
                stroke: #666;
                stroke-miterlimit: 10;
                stroke-width: 9px;
            }
        </style>
    </defs>
    <rect class="cls-1" width="512" height="512" />
    <circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>

.cls-1{
填充:无;
}
.cls-2{
填充:无;
行程:#666;
行程限制:10;
笔划宽度:9px;
}
当使用ffimageloadingsvg:SvgCachedImage时,此svgs在Google、Illustrator和XF中工作

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
    <defs>
        <style type="text/css">
            .cls-1 {
                fill: none;
            }
            .cls-2 {
                fill: none;
                stroke: #666;
                stroke-miterlimit: 10;
                stroke-width: 9px;
            }
        </style>
    </defs>
    <rect class="cls-1" width="512" height="512" />
    <circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
    <defs>
        <style type="text/css">
            .cls-1, .cls-2 {
                fill: none;
            }
            .cls-2 {
                stroke: #666;
                stroke-miterlimit: 10;
                stroke-width: 9px;
            }
        </style>
    </defs>
    <rect class="cls-1" width="512" height="512" />
    <circle class="cls-2" cx="256" cy="256" r="251.5" />
</svg>

.cls-1、.cls-2{
填充:无;
}
.cls-2{
行程:#666;
行程限制:10;
笔划宽度:9px;
}

如果您认为Skia的SVG呈现存在问题,那么我会在他们的Gitub上提交一个问题。您能告诉我们这些SVG的区别吗?