[英]SVG Text multiple lines
好的,所以我有一些文字,想知道当窗口变小以使其在一行上时,自动跨越几行的最佳方法是什么?
Not really an answer, but a response to http://pastebin.com/gaQbW9LL . 并不是真正的答案,而是对http://pastebin.com/gaQbW9LL的答复。
One rather obvious error is that you're creating html elements but in the svg namespace: 一个相当明显的错误是您正在svg命名空间中创建html元素:
var bodyEle = document.createElementNS(svgns,'body');
That should be, eg: 应该是,例如:
var bodyEle = document.createElementNS(xhtmlns,'body');
where xhtmlns is http://www.w3.org/1999/xhtml
. 其中xhtmlns是
http://www.w3.org/1999/xhtml
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.