| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1376 人关注过本帖
标题:在手机中怎来实现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
快速回复:在手机中怎来实现svg图片中的字符查找
数据加载中...
 
   



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

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