在 Applet 上显示 IFrame?坏主意?
在我正在使用的代码中,存在 IFrame 部分放置在 Java Applet 上的情况。我认为这种方法是一种“黑客”,不能保证在浏览器之间正常工作,但到目前为止,还没有任何节目可以阻止这种方法的错误...但是今天我发现在 Firefox 3.6 上小程序总是出现这种情况停留在 IFrame 之上,破坏了该功能。
我们应该在 Applet 上显示 IFrame 还是这是一个坏主意?
谢谢!
In code I am working with there are instances where an IFrame gets placed partially over a Java Applet. I thought this approach was a "hack" and wasn't guaranteed to work correctly across browsers but up until now there hasn't been any show stopping bugs with the approach... Today however I found circumstances where on firefox 3.6 the applet always stays on top of the IFrame, breaking the feature.
Should we be displaying an IFrame over an Applet or is that a bad idea?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是一个黑客行为,但它不一定是一个坏主意。当然,最好可以重新设计页面以避免这种黑客攻击的必要性,但情况并非总是如此*。
这是一个得到很好支持的黑客,已经被许多人在许多不同的浏览器上进行了广泛的测试。如果你说的是真的,那么这个黑客似乎不再像以前那样可靠了。
*注意:说服您的老板/客户不使用 Java/Flash/Silverlight 或打破设计师对页面应如何工作的愿景并不总是可能的。
Yes this is a hack but it is not necessarily a bad idea. Of course it's best if the page can be redesigned to avoid the necessity of this hack but that is not always the case*.
This is a fairly well supported hack that have been extensively tested by many people on many different browsers. If what you're saying is true then it appears that this hack is no longer as reliable as it used to be.
*note: it is not always possible to convince your boss/client to not use Java/Flash/Silverlight or to break the designer's vision of how the page should work.