Closed cycold closed 7 years ago
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 3000 2000" style="background:bisque" > <rect width="100%" height="100%" fill="red" /> <circle cx="150" cy="100" r="80" fill="green" /> <text x="150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text> </svg>
viewBox 表示缩放 http://www.zhangxinxu.com/wordpress/2014/08/svg-viewport-viewbox-preserveaspectratio/
viewBox
viewBox
表示缩放 http://www.zhangxinxu.com/wordpress/2014/08/svg-viewport-viewbox-preserveaspectratio/