Default background color of SVG root element

后端 未结 6 1135
一生所求
一生所求 2020-11-29 17:30

I\'d like to set a default background color for the entire SVG document, to red for example.

/*          


        
6条回答
  •  时光说笑
    2020-11-29 18:12

    Another workaround might be to use

    of the same size to wrap the . After that, you will be able to apply "background-color", and "background-image" that will affect thesvg.

提交回复
热议问题