手机做炫光图头像的网站/优化大师电脑版官方免费下载
在做 web 开发中可能会遇到 flash 遮挡页面中元素的情况,无论怎么设置 flash 容器和
层的深度 (z-index) 也无济于事,现有的解决方案是在插入 flash 的 embed 或 object 标签中加
入” wmode ”属性并设置为 wmode= “transparent”或” opaque”,但 wmode 属性到底是什么
意义,为什么可以解
在 flash 标签中
"Window" 在 Web 页上用影片自己的矩形窗口来播放应用程序, 并且始终位于最顶层。
"Opaque" 显示页面上位于它后面的内容。
"Transparent" 使 HTML 页的背景可以透过应用程序的所有透明部分显示出来,并且可
能会降低动画性能。
注: "Opaque" 和 "Transparent" 都可与 HTML 层交互,从而允许 SWF 文件上方的层遮
蔽应用程序。这两种选项之间的差异在于 "Transparent" 允许透明,因此,如果 SWF 文件的
某一部分是透明的,则 SWF 文件下方的 HTML 层可以透过该部分显示出来,而 "opaque"
则不会显示。
也就是如果发生 FLASH 遮盖 DIV 层的情况,就必须要改 wmode 属性为“ Transparent”
在做 web 开发中可能会遇到 flash 遮挡页面中元素的情况,无论怎么设置 flash 容器和
层的深度 (z-index) 也无济于事,现有的解决方案是在插入 flash 的 embed 或 object 标签中加
入” wmode ”属性并设置为 wmode= “transparent”或” opaque”,但 wmode 属性到底是什么
意义,为什么可以解决这个问题呢?
window mode(wmode)
wmode 即窗口模式总共有三种,看看当年 Macromedia 官方的说法: Window: Use the
Window value to play a Flash Player movie in its own rectangular window on a web page. This is
the default value for wmode and it works the way the classic Flash Player works. This normally
provides the fastest animation performance. Opaque: By using the Opaque value you can use
JavaScript to move or resize movies that don ’t need a transparent background. Opaque mode
makes the movie hide everything behind it on the page. Additionally, opaque mode moves
elements behind Flash movies (for example, with dynamic HTML) to prevent them from showing
through. Transparent: Transparent mode allows the background of the HTML page, or the
DHTML layer underneath the Flash movie or layer, to show through all the transparent portions of
the movie. This allows you to overlap the movie with other elements of the HTML pag