VML标记与通用属性

上一篇 / 下一篇  2007-05-19 15:19:22 / 个人分类:VML

51Testing软件测试网&B9HU|WcEW

1.VML标记51Testing软件测试网WE)fY.cS
  VML是通过XML标记来描述矢量图形的,所以必须遵循一定规则,请看下面的几种标记写法51Testing软件测试网'D9Yv6k;~.Wib
  (1)图形不包含内容,可以直接使用/>号结束51Testing软件测试网!q9]6s2zo)@$x,ms
    <HTML xmlns:v><STYLE>v\:*{behavīor:url(#default#VML);}</STYLE><BODY>51Testing软件测试网x]#YT(jH
       <v:oval fillcolor='red' style='width:100;height:150'/>
,S oH,j f0   (2)或者使用</名域名:标记名>的形式表示VML图形描述标记的结束
qrx g4|/|!m0     <HTML xmlns:v><STYLE>v\:*{behavīor:url(#default#VML);}</STYLE><BODY>51Testing软件测试网9F4u3s#NA.w+c&@;D
       <v:oval fillcolor='red' style='width:100;height:150'></v:oval>
Jz|9bP+\(t;J02.VML标记通用属性说明
*HPp:P k"|v;SM0 和HTML标记的通用属性(如id、name、class、title、style)等一样,VML标记也有自己的通用属性,支持HTML的通用属性,支持CSS的样式定义.通过这些属性,我们可以修饰VML图形(如线,圆形)的形状,大小,颜色,内容,边框,以及定义鼠标样式,编程用的ID索引,提示标题等等51Testing软件测试网%A!|7I2A.{`]o Y:s-s
3.VML标记特有的通用属性(非HTML,CSS所有)-参考表51Testing软件测试网 MzW[J6^
 VML特有通用属性使用范例:51Testing软件测试网r)[\4Zf-^x4?
  <html xmlns:v><style>v\:*{behavīor:url(#default#vml);}</style><body>
P6f?m Mn`0  <v:oval strokeweight='5' strokecolor='red' fillcolor=yellow
a8f`II`#lbI0  style='width:100;height:150'></v:oval>
2YsYzPL@+F?7n0  <v:oval stroked=false fillcolor=yellow style='width:100;height:150'/>  51Testing软件测试网3C&sF(PDQ!H$C5^x
  属性名      默认值      值类型/范围       用途51Testing软件测试网x#?&k$q-z,a$Zf
 strokeweight    0.75pt=1px     number                描述图形的边框粗度51Testing软件测试网@"B%f6M n0\
 strokecolor     black          color                 描述图形的过框颜色
A/Q7B:lO)r5h%\6u0  stroked         true           boolean         描述图形是否使用过框51Testing软件测试网'x;G.cq}3F
  fillcolor       white          color          描述图形是否使用51Testing软件测试网3M~x y*Aj9E
  filled          true           boolean51Testing软件测试网u5[!V#F4O.^.tj}
  print           true           boolean
!|._~%s [ j2?9I'L+F\0  coordsize       1000,1000      Vector2D51Testing软件测试网xaTL:n"?C"n3n1Z
  coordorigin     0 0            Vector2D51Testing软件测试网(]+H }*NUbs u#X
  wrapcoords      null           string        
'W.qT rY7V0

d)z-R+Vt-Ok0

TAG: VML

 

评分:0

我来说两句

Open Toolbar