本文介绍了HTML嵌入对象具有灰色背景。它可以透明吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我使用带有开源插件的Firefox来播放视频。将视频缩放为尽可能好以适应嵌入对象宽度和高度中定义的可用空间。但是有时在右侧和/或底部有一点灰色边框。

I'm using Firefox with an opensource plugin to playback video. The video is scaled "as good as possible" to fit the available space defined in the width and height of the embed object. But sometimes there is a little grey border on the right and/or bottom.

看来这不是我父母div的bgcolor,因为改变它根本没有任何作用。

It seems this isn't the bgcolor of my parent div as changing it has no effect at all.

这是HTML:

This is the HTML:

<div id="videoHolder" style="position: absolute; left: 50px; top: 50px; width: 300px; height: 150px;">
 <embed id="player" width="300" height="150" border="0" type="application/x-gbp" x-gbp-uri="">
</div>

任何人都知道一种将嵌入定义为透明的方法吗?
设置wmode = transparent与Flash无关......

Anyone knows of a way to define an embed to be transparent?Setting wmode=transparent as with Flash has no effect...

谢谢,
Frank

Thanks,Frank

推荐答案

没有通用的方法来告诉插件元素在浏览器端是透明的,插件需要在他们的本地代码中支持它们。

There is no general way to tell plugin elements to be transparent from the browser-side, plugins need to support that themselves in their native code.

对于Flash来说,设置 wmode =transparent是可行的,但仅仅是因为Flash自己实现了它。

For Flash setting the wmode="transparent" works, but only because Flash implements that itself.

这篇关于HTML嵌入对象具有灰色背景。它可以透明吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 02:25