我有一些这样的标签:
<path d="M 782.5 421 C 787.828 421 787.828 429 782.5 429 C 777.172 429 777.172 421 782.5 421 Z"
fill="#4572A7" stroke="#FFFFFF" stroke-width="0.000001" width="8" height="8"></path>
我希望所有标签都有更大的宽度和高度,而不是 8。但我很困惑,因为它们不在 style 属性中。如何通过 javascript 或 jquery 更改它们?
最佳答案
$('path').attr({width: 16, height: 16})
关于javascript - 更改标签的属性值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11865094/