获取VML fillcolor=“none”使用 :fill 时工作
我有一个 VML 问题。我知道……很少见。
问题是使用“fill”元素显示图像,而其后面没有颜色。我有重复的 PNG 图案,因此它们在某些地方是透明的,我需要看穿底层元素。
因此,这是生成的 VML:
<fabCorners:shape style="CLIP: rect(1px 110px 168px 1px); Z-INDEX: 0; POSITION: absolute; WIDTH: 100%; HEIGHT: 100%; TOP: 0px; LEFT: 0px" id=blockArea_26PatternVmlImage class="vmlElm vmlImage" op="0.71" coordsize = "109,167" coordorigin = "1,1" filled = "t" fillcolor = "none" stroked = "f" path = " m0,13 qy13,0 l97,0 qx110,13 l110,155 qy97,168 l13,168 qx0,155 l0,13 e">
<fabCorners:fill class=vmlImageFill src = "/patternimages/patterns67_7_5.png" type = "tile" opacity = "46530f" position = "595f,390f">
</fabCorners:fill>
</fabCorners:shape>
即使填充颜色设置为无,它仍然变为白色。
我欢迎任何帮助,非常感谢。
I have a VML question. I know... rare.
The problem is displaying an image using the "fill" element without a color behind it. I have repeating PNG patterns, so they are transparent in some places and I need to see through to underlaying elements.
So, here is the produced VML:
<fabCorners:shape style="CLIP: rect(1px 110px 168px 1px); Z-INDEX: 0; POSITION: absolute; WIDTH: 100%; HEIGHT: 100%; TOP: 0px; LEFT: 0px" id=blockArea_26PatternVmlImage class="vmlElm vmlImage" op="0.71" coordsize = "109,167" coordorigin = "1,1" filled = "t" fillcolor = "none" stroked = "f" path = " m0,13 qy13,0 l97,0 qx110,13 l110,155 qy97,168 l13,168 qx0,155 l0,13 e">
<fabCorners:fill class=vmlImageFill src = "/patternimages/patterns67_7_5.png" type = "tile" opacity = "46530f" position = "595f,390f">
</fabCorners:fill>
</fabCorners:shape>
Even though the fillcolor is set to none, it still goes white.
I welcome any help, much thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然很奇怪,但解决方案在于用 js 将 fillcolor 设置为 none。由于某种原因,在标记中使用 fillcolor="none" 是不够的,也不起作用。但是如果你在页面加载后用js将fillcolor设置为none,它就可以工作。
As whacky as it is, the solution lies in setting the fillcolor to none with js. For some reason, having fillcolor="none" in the markup isn't enough and doesn't work. But it you set fillcolor to none with js after page load, it works.