I am setting a fill attribute on SVG images, but after they are moved with .insertBefore(), they revert back to default and I am no longer able to select the right ele,javascript,jquery,html,svg"/>

首页 > 解决方案 > SVG 作为 loses attribute "fill" when moved with .insertBefore()

I am setting a fill attribute on SVG images, but after they are moved with .insertBefore(), they revert back to default and I am no longer able to select the right ele