好的,所以我有一些文字,想知道当窗口变小以使其在一行上时,自动跨越几行的最佳方法是什么?
Not really an answer, but a response to http://pastebin.com/gaQbW9LL .
One rather obvious error is that you're creating html elements but in the svg namespace:
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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.