以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- 为什么Batik的Viewer好多动画效果都看不了啊?郁闷!高手都来帮帮忙啊! (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=20750) |
-- 作者:pateric -- 发布时间:7/28/2005 4:59:00 PM -- 为什么Batik的Viewer好多动画效果都看不了啊?郁闷!高手都来帮帮忙啊! 在做一个东西,要做一个沿着一根线运动的效果,好不容易找了个例子,居然打不开, 例子代码:用adobe svg viewer能看到效果的。 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="500" height="300" viewBox="0 0 500 300" xmlns="http://www.w3.org/2000/svg"> <desc>sam</desc> <defs> <linearGradient id="grad1" x1="0" y1="0" x2="0" y2="100%" gradientUnits="userSpace"> <stop offset="0%" style="stop-color: #88f;"/> <stop offset="100%" style="stop-color: #008;"/> </linearGradient> </defs> <rect x="1" y="1" width="498" height="298" fill="none" stroke="blue" stroke-width="2" /> <path d="M100,250 C 100,50 400,50 400,250" fill="none" stroke="blue" stroke-width="8" /> <circle r="25" style="fill:url(#grad1)"> <animateMotion dur="6s" repeatCount="indefinite" path="M100,250 C 100,50 400,50 400,250" rotate="auto" /> </circle> <text x="145" y="285" style="font-size:12pt">http://lucky.myrice.com</text> </svg> |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
31.006ms |