给svg元素写样式要写成:
`svg.setAttribute( "style", "fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)" )`
这样才行。
还有iPhone你为啥不支持inline SVG……真够够的😤
展开
评论