Modify SVG fill color when being served as Background-Image

后端 未结 16 1310
再見小時候
再見小時候 2020-11-22 06:31

Placing the SVG output directly inline with the page code I am able to simply modify fill colors with CSS like so:

po         


        
16条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 07:16

    Download your svg as text.

    Modify your svg text using javascript to change the paint/stroke/fill color[s].

    Then embed the modified svg string inline into your css as described here.

提交回复
热议问题