|
|
|
| Вопрос такой, как можно в SVG картинке сгруппировать несколько примитивов, чтобы потом их перемещать вместе?
Код такой:
<g x='20' y='20'>
<rect x="0" y="0" rx="8" width="200" height="48" fill="lightblue" stroke-width="0"/>
<text x="2" y="12" font-family="Arial" font-size="12" font-weight="bold">17.08.09</text>
<text x="2" y="42" font-family="Arial" font-size="12" font-weight="bold">14:00</text>
<image id="1" x="50" y="0" width="48px" height="48px" xlink:href="tick/Cloudy1.png" preserveAspectRatio="none"/>
<text x="100" y="20" font-family="Arial" font-size="20" font-weight="bold" fill="blue">+21°C</text>
<text x="110" y="40" font-family="Arial" font-size="12" font-weight="bold" fill="red">760мм.р.с.</text>
<text x="180" y="14" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle">С-З</text>
<text x="160" y="28" font-family="Arial" font-size="14" font-weight="bold">10-15</text>
</g>
|
Но это не помогает. | |
|
|
|
|
|
|
|
для: angelcorpc
(19.08.2009 в 16:33)
| | все, нашел ответ:)
<g transform="translate(1,22)" > | |
|
|
|