我有一个SVG与拉斐尔2.0看起来像这样创建:如何更改或添加ID到SVG?
<div class="stave">
<svg height="342" version="1.1" width="512" xmlns="http://www.w3.org/2000/svg"
style="overflow: hidden; position: relative;" viewBox="0 410 1300 80"
preserveAspectRatio="meet">
........
</svg>
</div>
我只是想一个ID设置为SVG标签!我该怎么做? JQUERY或RAPHAEL 2.0? 我看到很多答案,但没有为我工作。
谢谢你帮
你起诉什么代码来生成SVG。这是整个页面上唯一的SVG标签吗? –