简体   繁体   English

如何仅缩放SVG的一部分

[英]How can I scale only part of svg

I have svg with 2 parts: 我有2部分的svg:

____________
|    |      |
| p1 |  p2  |
|____|______|

How can I save p1 width and scale only p2 width on horizontal scale? 如何保存p1宽度并仅在水平比例尺上缩放p2宽度? Please suggest me where can I get know about it. 请建议我在哪里可以知道。 Thank you! 谢谢!

You can't do this with plain SVG. 使用普通的SVG无法做到这一点。 You would need to either use two SVGs side-by-side, or use Javascript to alter p2 where necessary. 您可能需要并排使用两个SVG,或者在必要时使用Javascript更改p2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM