LWUIT HtmlComponent 行不会被换行 +解析器问题

发布于 2024-11-17 02:32:50 字数 410 浏览 4 评论 0原文

我想我面临着一个简单的布局问题。 我通过 LWUIT 在表单上嵌入 HTMLComponent,这个 HTMLComponent 显示本地 HTML 文件。结果没有换行但是无穷无尽 沿 X 方向滚动。

我怎样才能改变这种行为?

我的文件中还有一些不受真正支持的标签。

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><doc><head><title>

如何在不手动删除这些标签的情况下仍然解析文件? 我是否需要修改我的 DocumentRequestHandler 或者在哪里可以修改?

此致

I think I'm facing a simple layout problem.
I'm embedding a HTMLComponent on a Form via LWUIT, this HTMLComponent
displays a local HTML file. The result has no line wrapping but endless
scrolling in X direction.

How can I change this behaviour?

I also have some tags in the files which aren't really supported.

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><doc><head><title>

How can I still parse the files, without removing those tags manually?
Do I need to modify my DocumentRequestHandler or where can I do that?

Best Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

软甜啾 2024-11-24 02:32:50

对于线条扭曲,请检查本地 HTML(或 CSS)文件中是否定义了任何特定的“宽度”。例如,如果宽度指定为“600”像素并且屏幕小于“600”,则可能会出现滚动。因此要么删除特定宽度,要么将其更改为“100%”。

希望这有帮助。

For the line warpping, please check if any specific "width" is defined in you local HTML (or CSS) file. For example, if the width is given as "600" pixels and the screen is less than "600" then scrolling may appear. So either remove the specific width or change it to "100%".

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文