我在网络应用程序中将Google HTML插件放置在Google地球插件上时遇到问题,我们将不胜感激.
它适用于地图,地形和混合模式,但在" 地球 "模式下,Flash会启动并自动将地图分层.
Z索引没有帮助.
大概我可以这样做:
document.getElementById('flashDiv').setAttribute('wmode', 'opaque');
Run Code Online (Sandbox Code Playgroud)
但鉴于谷歌的东西是动态编译的,它会让它变得更加困难.查看生成的代码在这里没有帮助.再次,由于它是在运行中编译的,像SWFObject这样的东西无法挽救这一天......
有没有人遇到类似的东西?我花了一个上午的时间搜索Google Earth API组,但没有多大帮助.
更新:经过更多的拉毛,答案可能在于iframe垫片.我可能也得出结论,该插件是基于Flash的.调查...

(来源:googlepages.com)
只是我发现下面的代码本质上是倒退的吗?
我正在使用此帖子作为参考.
// create the inner div
var $inner = $("<div>inner</div>")
// append it to a new outer div
.appendTo("<div>outer</div>")
// next change the jQuery chain to the "outer" div
.parent()
// append the outer div to the body
.appendTo("body")
// finally, go back to the last destructive command,
// giving us back a pointer to the "inner" div
.end();
Run Code Online (Sandbox Code Playgroud)
我最初的方法是抓住身体,然后在身体外面附上一个外层,然后在内部附加一个内部.
接近它然后跳过层次结构,parent ()只是让我觉得有点好奇......