0
试图创建图表图例。如何使svg文本像内联块
<svg>
<g class="legend">
<g>
<rect fill="blue" width="1em" height="1em" />
<text>Bosnia and Herzegovina</text>
</g>
<g>
<rect fill="red" width="1em" height="1em" />
<text>Democratic Republic of the Congo</text>
</g>
</g>
</svg>
很明显,每个项目都是从上一个开始的(0,0)开始的。有没有办法让它们更像行内块元素?