LWUIT HtmlComponent 行不会被换行 +解析器问题
我想我面临着一个简单的布局问题。 我通过 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于线条扭曲,请检查本地 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.