近日gametrailers從改變了自己的嵌入代碼:覆蓋不透明的div的iframe
<embed width="960" height="540" src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:722265" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autoPlay=false" allowfullscreen="true"></embed>
到
<iframe src="http://media.mtvnservices.com/embed/mgid:arc:video:gametrailers.com:0a115b6c-2d82-4a8c-b08b-4b6975e4c0dc" width="960" height="540" frameborder="0"></iframe>
新的嵌入代碼是一樣的youtube iframe,它覆蓋我的收藏夾。
隨着舊的嵌入代碼,我能夠增加wmode參數,並使其留在div下方:
<embed wmode="opaque" width="960" height="540" src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:722265" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autoPlay=false" allowfullscreen="true"></embed>
但新的代碼不允許我做任何事情,以保持以下的iframe,確實任何人都知道這個解決方案或我錯過了一些隱藏的參數?
使用z-index&位置對父div的絕對或相對位置 – SVS 2012-07-20 09:09:11
@SVS在chrome中沒有影響 – 2012-07-20 09:50:41