正确的是 HTMLEditorKit
渲染 HTML 内容时忽略如下所示的标签(用于在 IE7+ 浏览器中模拟 IE7)?
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
关于 HTMLEditorKit
的文档提到它:
..supports HTML version 3.2 (with some extensions), and is migrating toward version 4.0. The
<applet>
tag is not supported, but some support is provided for the<object>
tag.
所以我不需要担心 IE 渲染模式,因为这些模式无论如何都会被忽略?
最佳答案
So I shouldn't need to be concerned about IE rendering modes as these will be ignored anyway?
这样写的话,肯定会被忽略。
但是,如果 HTML 依赖于在实际浏览器中显示的兼容模式,我猜它会使用对于 Swing 样式引擎而言过于复杂的样式。
关于java - HTMLEditorKit 渲染是否取决于 IE 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29298851/