获取VML fillcolor=“none”使用 :fill 时工作

发布于 2024-10-01 01:40:28 字数 775 浏览 5 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

屋顶上的小猫咪 2024-10-08 01:40:28

虽然很奇怪,但解决方案在于用 js 将 fillcolor 设置为 none。由于某种原因,在标记中使用 fillcolor="none" 是不够的,也不起作用。但是如果你在页面加载后用js将fillcolor设置为none,它就可以工作。

elm.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.

elm.fillcolor = 'none';
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文