1

我已经为 svg 编写了代码。它像 HTML 文件类型一样工作正常。但是当我将文件扩展名从 .html 更改为 .svg 时,它不起作用。有什么解决办法??我的代码

<svg>
	<circle r="50%" fill="#e60" />
	<circle r="45%" fill="#e50" />
	<circle r="40%" fill="#e40" />
	<circle r="35%" fill="#e30" />
	<circle r="30%" fill="#e20" />
	<circle r="25%" fill="#e10" />
	</svg>

4

1 回答 1

1

我不是专业的 SVG,但我已将其修复如下:https ://jsbin.com/xonazavadu/edit?html,output

<svg xmlns="http://www.w3.org/2000/svg">
<circle r="50%" fill="#e60" />
<circle r="45%" fill="#e50" />
<circle r="40%" fill="#e40" />
<circle r="35%" fill="#e30" />
<circle r="30%" fill="#e20" />
<circle r="25%" fill="#e10" />
</svg>
于 2020-01-23T15:27:36.803 回答