How do I scale a stubborn SVG embedded with the <object> tag?

前端 未结 9 1348
眼角桃花
眼角桃花 2020-11-28 02:03

I have some SVG files that specifies width and height as well as viewbox like this:



        
9条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 02:30

    Just use CSS to make the browser resize the SVG! Like so: See http://www.vlado-do.de/svg_test/ for more details. I just also tried it locally with an SVG that has its width and height given in "pt". It works well in Firefox.

    提交回复
    热议问题