SVG 带有方形 viewBox 溢出 viewPort
A 有一个非方形 svg,需要一个可能会溢出 viewPort
的方形(单位)viewBox
。我能做些什么?我尝试了 preserveAspectRatio
的所有选项,但都不起作用。任何其他想法将不胜感激。
这就是它应该看起来的样子...
A have a non-squared svg and need a square (unit) viewBox
that may be overflowing the viewPort
. What can I do? I tried all options of preserveAspectRatio
, which didn't work. Any other ideas would be much appreciated.
This is how it should be looking...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您希望
切片确保所有视口在 viewBox 中可见。
You want
slice ensures that the all the viewport is visible within the viewBox.