Safari 及其他版本上的 Java Applet z-index [英] Java Applet z-index on Safari and beyond

查看:18
本文介绍了Safari 及其他版本上的 Java Applet z-index的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网页中 Java Applet 的一个众所周知的问题是浏览器会忽略 Applet 标签与页面中其他组件的 z-index.无论您如何在页面中定位和 z-index 元素,applet 都会在所有内容之上绘制自己.

A well known problem with Java Applets in webpages is that browsers ignore the z-index of the applet tag vs. other components in the page. No matter how you position and z-index elements in the page, applets will draw themselves on top of everything.

有一种解决方法,称为 iframe shim,如下所述:http://www.oratransplant.nl/2007/10/26/using-iframe-shim-to-partly-cover-a-java-applet/.

There is a workaround, known as the iframe shim, as described here: http://www.oratransplant.nl/2007/10/26/using-iframe-shim-to-partly-cover-a-java-applet/.

但是,此解决方法不适用于 Windows 中的 Safari 3 或 4(假设 Mac 相同).

However, this workaround does not work in Safari 3 or 4 in Windows (assuming the same for Mac).

有谁知道让它在 Safari 中工作的方法?

Does anyone know a way to make it work in Safari?

有没有人知道如何向 Sun 施压以解决根本问题,以便我们避免笨拙的垫片?这是关于该问题的错误报告,http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6646289,请注意它已经开放了一年,但其他错误报告可以追溯到很多年前.

Does anyone have ideas about how to pressure Sun to fix the underlying problem so we can avoid clumsy shims? Here is a bug report on the issue, http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6646289, notice that it has been open for a year, however other bug reports go back many many years.

这太令人沮丧了,难道 Sun 不明白这是一种将 Java 边缘化为在浏览器中做很酷东西的方式的事情吗?我爱你 Java,但你没有帮助你的情况......

This is so frustrating, don't Sun understand that this is the very sort of thing that has marginalized Java as a way of doing cool stuff in the browser? I love you Java, but you are not helping your situation...

推荐答案

其实问题和 z-index 一点关系都没有.它是由 Netscape Plugin API (NPAPI) 的窗口化"绘图模型引起的.

Actually problem is not related to z-index at all. It's caused by "windowed" drawing model of Netscape Plugin API (NPAPI).

你对此无能为力(除了垫片).插件作者必须使用无窗口API重写它.

You can't do anything about it (except the shim). Plugin author has to rewrite it using windowless API.

这篇关于Safari 及其他版本上的 Java Applet z-index的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆