1
我有一个普通的HTML页面,就像这个例子:编辑外部SVG图形通过JavaScript
<html>
<head>
<title>Test</title>
</head>
<body>
<img src='test.svg' id='myImage' />
</body>
</html>
是它在某种程度上可以编辑包含在'img'-TAG中的SVG图像?我想添加像circle或animate之类的元素。
感谢您的帮助。
可能重复http://stackoverflow.com/questions/8102528/how-do-you-access-the-contents -of-an-svg-file-in-img-element) – 2012-07-11 14:01:04