SVG路径未在UI中显示,但在检查元素中将<path>显示为0x0

时间:2019-04-05 07:44:21

标签: svg

我正在打字稿中创建SVG路径,但是SVG路径未显示在网页中,而是在inspect元素中显示了。在inspect元素中,svg的路径将大小显示为0x0。我的代码如下。请帮助我。

<svg id="svg1" viewbox="-100 -100 500 500" class="svgStyle" xmlns="http://www.w3.org/2000/svg" style="position: absolute;" width="300px" height="300px" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<path id="arc2" fill="none" stroke="#F1F1F1" stroke-width="40" stroke-linecap="round" d="M 234.8528137423857 234.8528137423857 A 120 120 0 1 0 65.14718625761428 234.8528137423857"></path>
</svg>

0 个答案:

没有答案