我已经显示在SVG格式的下列项目列表和优惠的价格。SVG文本 - 一个文本左对齐,并在同一行中其他文本必须右对齐
瓶........... $ 5.00
瓶的说明
台式机配件........... $ 25.00
的桌面附件说明
谁能帮我在svgList的右侧布局价如图所示image下面也显示。
瓶................................. $ 5.00
瓶的说明
桌面配件...........的桌面配件
的SVG代码为$ 25.00
说明如下:
<svg id=“svgList” width="816" height="400" class="myBGImage">
<g id="main">
<g id="subGroup01" class="group" transform="translate(20,100)" style="cursor: move; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
<text alignment-baseline="baseline" text-anchor="start" data-type="itemtitle" id="itemtitle_h0f0" class="roboto_global fontSize_20g" stroke-width="2" color="#000000">
<tspan class="item" text-anchor="start" x="0" y="0">Bottles</tspan>
<tspan class="dots" text-anchor="start">...............</tspan>
<tspan class="price" text-anchor="start">$5.00</tspan>
<tspan class="item-desc" text-anchor="start" x="0" y="20">Description </tspan>
</text>
</g>
<g id="subGroup02" class="group" transform="translate(20,150)" style="cursor: move; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
<text alignment-baseline="baseline" text-anchor="start" data-type="itemtitle" id="itemtitle_h0f1" class="roboto_global fontSize_20g" stroke-width="2" color="#000000">
<tspan class="item" text-anchor="start" x="0" y="0">Desktop accessories</tspan>
<tspan class="dots" text-anchor="start">...............</tspan>
<tspan class="price" text-anchor="start">$25.00</tspan>
<tspan class="item-desc" text-anchor="start" x="0" y="20">Description </tspan>
</text>
</g>
</g>
</svg>
链接fiddle
你为什么使用SVG?文本布局实际上是HTML更适合的东西。 – ccprog
我需要这个列表,因为这个列表必须被打印。而且SVG给出了很好的分辨率 – anuja
这两个要求都可以通过html来满足。 –