前言
图形
SVG
<svg id="test_1"
xmlns="http://www.w3.org/2000/svg"
xml:space="preserve"
width...A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z"/>
组
相同样式的图形或者需要一起添加事件可以用g...内部元素的定位也是相对于svg的。...>
<svg xmlns="http://www.w3.org/2000/svg"
id="m_svg"
xml:space="preserve...= document.getElementById("m_svg");
m_svg.setAttributeNS(null, "onmousemove", "moveElement(evt