简体   繁体   English

JEdi​​tor不显示Firefox IE中的HTML页面。

[英]JEditor not displaying the HTML page as in IE of Firefox..?

I am using JEditor to display HTML pages. 我正在使用JEditor显示HTML页面。 The issue is that JEditor is not displaying the pages as they are displayed in IE or Firefox. 问题是JEditor没有显示页面,因为它们在IE或Firefox中显示。 Major issue is with Paragraph Tag. 主要问题是段落标签。 JEditor is not giving the paragraph effect, instead its working like a simple Line break JEdi​​tor并未赋予段落效果,而是像简单的换行符一样工作
tag. 标签。

UPDATED - The paragraph tag used is <p>....</p> 更新-使用的段落标签为<p>....</p>

JEditor is based on javax.swing.text.html.HTMLEditorKit, which according to its documentation it only supports HTML 3.2 and most likely minimal CSS. JEdi​​tor基于javax.swing.text.html.HTMLEditorKit,根据其文档,它仅支持HTML 3.2和最有可能的最小CSS。 You can't expect it to work like any current browser. 您不能指望它能像任何当前浏览器一样工作。

If you need to display "modern" HTML/CSS in your application, you'll need to embed a browser in it (which isn't trivial): https://stackoverflow.com/search?q=java+swing+embed+browser&submit=search 如果您需要在应用程序中显示“现代” HTML / CSS,则需要在其中嵌入浏览器(这不是很简单的): https : //stackoverflow.com/search?q= java+swing+embed + browser&submit =搜索

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM