我试图在VML中创建一个与SVG中的clip-path相对应的剪辑掩码?这有可能吗?
基于大量但相当有限的例子,我尝试绘制形状:
<vml:group style="WIDTH: 1px; HEIGHT: 1px" class=vml-element coordsize = "1,1">
<vml:shape style="WIDTH: 1px; HEIGHT: 1px" id=vectorObject2 class=vml-element _fill-color="red" _fill-opacity="1" _stroke-color="black" _stroke-opacity="1" _stroke-width="1" coordsize = "1,1" filled = "t" fillcolor = "red" stroked = "t" strokecolor = "black" strokeweight = ".75pt" path = "m0,0 l100,0,0,100 xe">
<vml:fill class=vml-element opacity = "1"></vml:fill>
<vml:stroke class=vml-element opacity = "1"></vml:stroke>
</vml:shape>
</vml:group>然后用vmlframe掩蔽它
<vml:vmlframe class=vml-element clip = "t" size = "15pt,37.5pt" src = "#vectorObject2"> </vml:vmlframe>shape (三角形)的绘制工作正常,但我无法找到使用vmlframe掩蔽它的方法。这是实现掩蔽的正确方法吗?
请忽略所有奇怪的自定义属性,因为大多数VML代码是通过第三方库生成的。
提前感谢!
发布于 2012-06-26 23:12:41
使用CSS剪辑属性来模拟剪辑路径,如Dojo GFX库或类似于jsgraphics图形学的内容所示。
https://stackoverflow.com/questions/11120004
复制相似问题