在 Windows 上滚动和缩放 SVG 查看器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1463789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Scrolling & zooming SVG Viewer on Windows?
提问by Eric the Red
We need to view some very large (7200+ pixels) SVGs. Every SVG viewer I've found, including modern web browsers, does not allow us to view the entire image. There aren't any scrollbars, and we do not have the option to zoom.
我们需要查看一些非常大(7200+ 像素)的 SVG。我发现的每个 SVG 查看器,包括现代 Web 浏览器,都不允许我们查看整个图像。没有任何滚动条,我们也没有缩放选项。
Is an open source / free application available that could help with viewing the entire SVG image? Thanks!
是否有可以帮助查看整个 SVG 图像的开源/免费应用程序?谢谢!
回答by Spadar Shut
You need to add viewBox attribute to the <svg>
element and wievers will scale the image to the available viewport.
您需要向<svg>
元素添加 viewBox 属性,wievers 会将图像缩放到可用的视口。
<svg viewBox='0 0 7200 7200' ... >
You may want to try Opera SVG Viewerto preview multiple svg files at once.
您可能想尝试使用Opera SVG Viewer一次预览多个 svg 文件。