【发布时间】:2019-10-05 13:58:57
【问题描述】:
我有一些 SVG 元素组合在一个 <g> 元素中(正是一维条码,PHP 生成一个条码)。
<g
style="fill:#000000;stroke:none"
id="barcode1D"
transform="matrix(1.2083333,0,0,0.8247805,62.027778,573.54235)">
<rect
x="0"
y="0"
width="4"
height="30"
id="xyz" />
....
<rect
x="224"
y="0"
width="0"
height="30"
id="xyzn" /> </g>
条形码以各种宽度、长度生成。如何永久设置宽度?
基于这个例子,我请求一个提示。提前感谢您的帮助。
【问题讨论】: