当前位置: 代码迷 >> Java相关 >> 在手机中怎来实现svg图片中的字符查找
  详细解决方案

在手机中怎来实现svg图片中的字符查找

热度:94   发布时间:2007-12-29 09:12:23.0
在手机中怎来实现svg图片中的字符查找
我的svg文件如下
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:demo="http://www.sun.com/svg/demo"
     id="root"
     width="100%" height="100%" viewBox="0 0 240 320"
     xml:space="preserve"
     preserveAspectRatio="none">
<rect fill="green" width="240" height="320"/>
<text x="90" y="20"  font-family="Monotype Corsiva"  fill="red" stroke="white">This is title
</text>
<text x="2" y="50" font-size="20"  font-family="Monotype Corsiva"  fill="red" stroke="white">sdddsyyyyds444112745554
</text>
<text x="2" y="80"  font-size="20" font-family="SimSun"  fill="red" stroke="white">dsssssssssssssssss
</text>
</svg>

要是用户自己来输入查找“sss”
我就在sss下画一个背景,这个功能怎么实现呀,怎么完成坐标定位,我只能定位到x=2,y=80,这里就不能再精确的定位了
搜索更多相关的解决方案: svg  手机  字符  xmlns  

----------------解决方案--------------------------------------------------------
高手们,知道的帮忙解答啊
----------------解决方案--------------------------------------------------------
  相关解决方案