我买了一个 svg 图形,我已将其导出为 .svg 文件,以便可以在内联 HTML 中使用。我已将它插入到<body>
我的文档的标签中,但现在我希望它填满屏幕的全宽和全高。我尝试设置宽度和高度属性,<svg>
设置为,将 .svg 文件加载为图像并使用nad强制图像为全窗口。
但是,没有任何效果。position: absolute
top, right, bottom, left: 0
viewBox
"0 0 screen_width screen_height"
position: absolute
top, right, bottom, left: 0
这是 svg 本身: http: //pastebin.com/y8kqf1bD
我已经尝试了Full width and height SVG中的所有选项,但它们也不起作用。
你知道我该怎么做吗?
提前非常感谢!