Stretch <svg> inside an <embed> to fit window size

后端 未结 2 570
失恋的感觉
失恋的感觉 2021-01-02 23:48

I am trying to stretch an svg document inside an DOM in order to fit the window size.

like so:

cl
2条回答
  •  悲&欢浪女
    2021-01-03 00:39

    All browsers handle SVG support completely differently. I think your best bet is to use an object tag instead of embed, and you still have to do some hacking to get it to look right on each browser. This link and this link have some useful information for getting it to work cross-browser.

提交回复
热议问题