SVG在Firefox中不起作用 [英] SVG not working in Firefox

查看:176
本文介绍了SVG在Firefox中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的CSS动画SVG似乎没有出现在Mozilla Firefox 58中,但是出现在Chrome中.

My CSS-animated SVG does not seem to appear in Mozilla Firefox 58, but it does in Chrome.

这里是指向代码笔页面的链接: https://codepen.io/ninivert/pen/qXvWxo
为什么会这样?删除stroke-dashoffsetstroke-dasharray似乎没有帮助.

Here is a link to the codepen page: https://codepen.io/ninivert/pen/qXvWxo
Why does this happen? Removing stroke-dashoffset and stroke-dasharray does not seem to help.

推荐答案

将圈子的cx/cy/r css样式移动到元素属性.

Move your circle's cx/cy/r css styles to element attributes.

这篇关于SVG在Firefox中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆