代碼如下:<svg:svg width="${w}" height="${h}" id="${processId}"> <svg:rect x="0" y="0" width="${w}" height="${h}" class="outer drag-start"/> <svg:rect x="3" y="3" width="${w-6}" height="${h-6}" class="inner"/> <svg:text text-anchor="middle" x="50%" y="50%" dominant-baseline="central">${text}</svg:text></svg:svg>怎樣設(shè)置最后一個 text 容器的字體大小以及能根據(jù)文字長度進行換行處理?
請問SVG text怎么設(shè)置字體大?。吭趺磽Q行?
紫衣仙女
2018-10-26 15:09:34