0

这是一个例子:

使用 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>

使用 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, .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>
4

0 回答 0