SVG Word Wrap - Show stopper?

前端 未结 8 972
既然无缘
既然无缘 2020-12-23 21:42

For fun I am trying to see how far I can get at implementing an SVG browser client for a RIA I\'m messing around with in my spare time.

But have hit what appears to

8条回答
  •  梦毁少年i
    2020-12-23 22:38

    There is also foreignObject tag. Then you can embed HTML in SVG which gives the greatest flexibility. HTML is great for document layout and has been hacked to no end to support application layout, drawing, and everything us developers want. But it's strength is word wrapping and document layout. Let HTML do what it does best, and let SVG do what it does best.

    http://www.w3.org/TR/SVG/extend.html

    This works for most browsers FireFox, Opera, Webkit, except IE (as of IE11). :-( Story of the web ain't it?

    http://schmerg.com/svg-support-in-ie9-close-but-should-try-harde

提交回复
热议问题