I think svg.attr({ width: X, height: Y}) should work. I resize SVG with CSS so it should work with JS. And don't chnage the viewbox-attribute.
確定! 回上一頁