我的SVG
中的fill/stroke/stroke-width
属性应该在style="..."
内或外。
例如:
<rect x="10" y="10" fill="red" stroke="green" stroke-width="1" width="80px" height="50"/>
-----------------------OR--------------------
<rect x="10" y="10" style="fill:red; stroke:green; stroke-width:1;" width="80px" height="50"/>
哪一个是正确的?两者都可以,并且原因是...