我已經顯示在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來滿足。 –