VML实现web topo原型 (2)-基本元素
2010-03-09 15:30
162 查看
这个是webtop页面的一部分。展示了vml 中的line、textpath元素的用法。
结合vml极道教程,可以完成初步入门。
结合vml极道教程,可以完成初步入门。
<!-- legengd.html 1.显示图例功能 2.显示文字、线 --> <html xmlns:v="urn:schemas-microsoft-com:vml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title> 图例 </title> </head> <STYLE> v/:* { BEHAVIOR: url(#default#VML) } </STYLE> <body bgcolor="#ffffff"> <!--创建一个group,指定位置,大小 --> <v:group ID="bandwidthLegend" style="position:absolute;Z-INDEX:2;WIDTH:200px;HEIGHT:200px;top:125;left:50" > <!--文本路径,textpath必须依赖于path和一个载体shape, 这里为line --> <v:line id="textforPE-7" style="Z-INDEX:5;LEFT:0;POSITION:absolute;TOP:0" from="0,-91" to="500,-90" strokecolor="#004382"> <!-- t代表true ,f代表false--> <v:path textpathok="t"/> <!--fitpath代表是否按载体进行填充,颜色从载体继承--> <v:textpath on="t" fitpath="f" string="电路带宽图例" style="Z-INDEX:100;font-family: '宋体'; font-size: 14px; color: #004382; background-repeat: no-repeat;" mce_style="Z-INDEX:100;font-family: '宋体'; font-size: 14px; color: #004382; background-repeat: no-repeat;"/> </v:path> </v:line> <!--画一条线,线宽1,注意以/>结尾--> <v:line id="textforPE-7" strokeweight="1px" style="Z-INDEX:5;LEFT:0;POSITION:absolute;TOP:0" from="0,0" to="200,0" strokecolor="#004382" /> <!--文本路径,显示数字带宽范围--> <v:line id="textforPE-7" style="Z-INDEX:5;LEFT:0;POSITION:absolute;TOP:0" from="-3964.0,0" to="5520.0,1" strokecolor="#004382"> <v:path textpathok="t"/> <v:textpath on="t" fitpath="f" string=" <1000000 " style="Z-INDEX:100;font-family: '宋体'; font-size: 12px; color: #004382; background-repeat: no-repeat;" mce_style="Z-INDEX:100;font-family: '宋体'; font-size: 12px; color: #004382; background-repeat: no-repeat;"/> </v:line> <!--画线2,线宽2,注意以/>结尾--> <v:line id="textforPE-7" strokeweight="2px" style="Z-INDEX:5;LEFT:0;POSITION:absolute;TOP:0" from="0,70" to="200,70" strokecolor="#004382" /> <v:line id="textforPE-7" style="Z-INDEX:5;LEFT:0;POSITION:absolute;TOP:0" from="-3964.0,70" to="5520.0,71" strokecolor="#004382"> <v:path textpathok="t"/> <v:textpath on="t" fitpath="f" string=" (1000000,9000000)" style="Z-INDEX:100;font-family: '宋体'; font-size: 12px; color: #004382; background-repeat: no-repeat;" mce_style="Z-INDEX:100;font-family: '宋体'; font-size: 12px; color: #004382; background-repeat: no-repeat;"/> </v:line> <!--画线3,线宽4,注意以/>结尾--> <v:line id="textforPE-7" strokeweight="4px" style="Z-INDEX:5;LEFT:0;POSITION:absolute;TOP:0" from="0,140" to="200,140" strokecolor="#004382" /> <v:line id="textforPE-7" style="Z-INDEX:5;LEFT:0;POSITION:absolute;TOP:0" from="-3964.0,140" to="5520.0,141" strokecolor="#004382"> <v:path textpathok="t"/> <v:textpath on="t" fitpath="f" string=" (9000000,24000000)" style="Z-INDEX:100;font-family: '宋体'; font-size: 12px; color: #004382; background-repeat: no-repeat;" mce_style="Z-INDEX:100;font-family: '宋体'; font-size: 12px; color: #004382; background-repeat: no-repeat;"/> </v:line> </v:group> </body> </html>
相关文章推荐
- vml实现web topo原型(14)-背景图
- vml 实现 WEB topo原型(3)-设备
- vml实现web topo原型(7)-性能测试
- vml 实现web topo原型(4)-设备和电路
- vml实现web topo原型(9) - 性能改进
- VML实现WEB Topo原型(1)
- vml 实现web topo原型(6)-鼠标事件
- vml实现web topo原型(10) -移动
- vml 实现web topo原型(12)-自动摆放
- vml实现web topo原型(11) - 弧线
- vml 实现web topo原型(13) -弹出菜单
- 设计一个特殊的栈,在实现栈的基本功能的基础上,再实现返回栈中最小元素的操作
- 贪吃蛇原型实现基本思路
- jquery基本选择器匹配多个元素的实现方法
- 顺序表的应用举例(利用顺序表的基本运算,实现如果在顺序表A中出现的元素,在顺序表B中也出现,则将A中该元素删除)
- 单链表应用举例(利用单链表的基本运算,实现如果在A单链表中出现的元素在B单链表中也出现,则将A中的元素删除)
- VML实现web top0 原型(5)-缩放
- 一、实现一个特殊的栈,在实现栈的基本功能的基础上,再实现返回栈中最小元素的操作
- vml实现web top原型(8)-导出
- 实现一个特殊的栈,在实现栈的基本功能的基础上,再实现返回栈中最小元素的操作。