标题:在手机中怎来实现svg图片中的字符查找
只看楼主
zhoushuyan
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-12-6
 问题点数:0 回复次数:1 
在手机中怎来实现svg图片中的字符查找
我的svg文件如下
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.
     xmlns:xlink="http://www.
     xmlns:demo="http://www.
     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 
2007-12-29 09:12
zhoushuyan
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-12-6
得分:0 
高手们,知道的帮忙解答啊
2007-12-29 09:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-194915-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.695534 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved