Windows Media Player 位于其他 DIV 之上

发布于 2024-08-09 07:25:10 字数 1294 浏览 8 评论 0原文

我有一个嵌入窗口媒体播放器,它始终位于其他 DIV 标签之上。我用了 wmode = opaque; WindowlessVideo = -1 但这没有帮助。有谁知道如何使其出现在页面的某个元素下方。

<object type="application/x-oleobject"
classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
width="345" height="45"><param name="URL" value=
"http://nhacso.net/Music/nghe_song.aspx?id=100004995" />
<param name="EnableContextMenu" value="0" />
<param name="uiMode" value="full" />
<param name="stretchToFit" value="True" />
<param name="AnimationAtStart" value="false" />
<param name="playcount" value="10" />
<param name="Volume" value="100" />
<param name="autostart" value="0" />
<param name="wmode" value="opaque" />
<param name="WindowlessVideo" value="-1" />
<embed src="http://nhacso.net/Music/nghe_song.aspx?id=100004995"
type="application/x-mplayer2" width="345" height="45" align=
"center" border="0" autostart="0" transparentatstart="1"
animationatstart="1" showcontrols="true" showaudiocontrols="1"
showpositioncontrols="0" enablecontextmenu="0" autosize="0"
showstatusbar="1" displaysize="false" playcount="10" wmode="opaque"
windowlessvideo="-1" /></object>

谢谢

I have an embed window media player which is always on top of other DIV tags. I used wmode = opaque; WindowlessVideo = -1 but it does not help. Does anyone know how to make it appear below a certain element of the page.

<object type="application/x-oleobject"
classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
width="345" height="45"><param name="URL" value=
"http://nhacso.net/Music/nghe_song.aspx?id=100004995" />
<param name="EnableContextMenu" value="0" />
<param name="uiMode" value="full" />
<param name="stretchToFit" value="True" />
<param name="AnimationAtStart" value="false" />
<param name="playcount" value="10" />
<param name="Volume" value="100" />
<param name="autostart" value="0" />
<param name="wmode" value="opaque" />
<param name="WindowlessVideo" value="-1" />
<embed src="http://nhacso.net/Music/nghe_song.aspx?id=100004995"
type="application/x-mplayer2" width="345" height="45" align=
"center" border="0" autostart="0" transparentatstart="1"
animationatstart="1" showcontrols="true" showaudiocontrols="1"
showpositioncontrols="0" enablecontextmenu="0" autosize="0"
showstatusbar="1" displaysize="false" playcount="10" wmode="opaque"
windowlessvideo="-1" /></object>

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

梦中的蝴蝶 2024-08-16 07:25:10

我遇到了同样的问题并因此解决了它:

<param name="windowlessVideo" value="true">

使用“-1”作为布尔值可能会或可能不会按预期工作。

I had the same issue and resolved it thusly:

<param name="windowlessVideo" value="true">

Using "-1" for a boolean value may or may not work as expected.

生生漫 2024-08-16 07:25:10
<param name="windowlessVideo" value="true">

这工作完美。

谢谢

<param name="windowlessVideo" value="true">

This work perfactly.

Thanks

彻夜缠绵 2024-08-16 07:25:10

我有过使用 *.swf 对象做同样事情的类似经历。我不确定同样的解决方案在这里是否有效,但值得一试。定义 z-index 时,还必须为对象标签所在的 div 指定position:absolute。

I have had a similar experience doing the same thing with *.swf objects. I'm uncertain whether the same solution will work here, but it's worth a shot. When defining z-index, you also have to designate position: absolute for the div that the object tag sits in.

尴尬癌患者 2024-08-16 07:25:10

上面的人关于 z-index 的说法是正确的,但是除非有相对容器 div,否则您不希望绝对位置,即使如此,相对位置也能很好地为您工作,并且允许对象继续与图层交互就将其下方的事物向下推等等而言。绝对位置仅适用于固定高度容器内,其中元素的高度不用于将页面内容向下推 - 页眉和页脚之类的东西。

此外,对于定位,最佳做法是定位所有兄弟姐妹及其父母。换句话说,无论您何时开始定位以在内部某些内容上使用 z-index,您都应该对内部的所有同级元素进行定位和 z-index。当您这样做时,会更清晰、更容易地看到发生了什么。

PS - 选项选择框也有类似的问题,遵循正常的 z-index 规则。

The person above is right about z-index, but you don't want position absolute unless there is a relative container div, and even then, position relative will work for you just fine and will allow the object to continue to interact with the layer in terms of pushing things down that are below it and so forth. Position absolute is only good inside of a fixed height container where the height of the elements inside it arent used to push the content of the page down - headers and footers, that sort of thing.

Also, with positioning, it's best practice to position all siblings and their parent. In other words, wherever you start positioning for the purpose of using z-index on something inside, you should position and z-index all sibling elements inside there. It's cleaner and easier to see what's going on when you do.

PS - Option select boxes have similar problems obeying normal z-index rules as well.

云柯 2024-08-16 07:25:10

对我有用的是将 Z-index 设置为 -1 这部分代码你需要更改

What worked for me was putting the Z-index to -1 this part of code u need to change

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