SORU
17 Temmuz 2011, Pazar


SVG: içinde rect metin

Bazı metin görüntülemek istiyorumiçinderect SVG. Mümkün mü?

Denedim

<svg xmlns="http://www.w3.org/2000/svg">
<g>
  <rect x="0" y="0" width="100" height="100" fill="red" >
  <text x="0" y="10" font-family="Verdana" font-size="55" fill="blue" > Hello </text>
  </rect>
</g>
</svg>

ama çalışmıyor

CEVAP
18 Temmuz 2011, PAZARTESİ


Bu mümkün değildir. Eğer dörtgen bir eleman içindeki metin görüntülemek istiyorsanız, metin öğesi rect öğesinden sonra gelen bir grup üstünde görünür böylece) hem onları koymak gerekir.

<svg xmlns="http://www.w3.org/2000/svg">
<g>
  <rect x="0" y="0" width="100" height="100" fill="red" ></rect>
  <text x="0" y="10" font-family="Verdana" font-size="55" fill="blue" > Hello </text>
</g>
</svg>

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Android Police

    Android Poli

    21 NİSAN 2010
  • Jon Reed

    Jon Reed

    14 AĞUSTOS 2006
  • newreleaseblitz

    newreleasebl

    13 Ocak 2010