I'm stuck on what appears to be a CSS/z-index conflict with the YouTube player. In Firefox 3 under Windows XP, Take a look at this page: http://spokenword.org/program/21396 Click on the Collect button and note that the pop-up <div> appears under the YouTube player. On other browsers the <div> appears on top. It has a z-index value of 999999. I've tried setting the z-index of the <object> element containing the player to a lower value, but that didn't work. Any idea how to get the pop-up to appear over the player?
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
although the recommendation by CMS is valid, there is an important update. If you want to use 'iframe' instead of 'embed' , simply add
?wmode=transparent
to your video link and that does the magic. I find this more simple and clean.Update, Feb 2014
It's been a while and this may be outdated.
Somebody reported that now
&wmode=transparent
works instead.I've noticed that wmode="opaque" terribly affects on usage of CPU. Chrome make on my notebook 50% CPU usage (without opaque ~8%).
So be careful with this option.
We use jQuery Flash plugin to convert YouTube links to Flash movies. In this case, wmode is passed as an option in order to get the YouTube video to appear underneath the jQuery Dialog we open:
i've found a pure JS function that fix it in all browsers!
there you go:
now you can just run in when the page loads with jQuery:
Try to add the
wmode
parameter to beopaque
like this:(Note that it's included in both a
<param>
tag and awmode
attribute on the<embed>
tag.)