如何在LWUIT框架中使用CSS?
我需要在 LWUIT 组件中使用 css。是否可以?如果可能的话请告诉我如何使用?
I need to use css in LWUIT components. Is it possible? If its possible means tell me how we can use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在 html 组件中添加完整的 html。 CSS 需要存在于 html 文件中。在 html 组件中设置正文后,lwuit 会呈现它支持的一些样式表。
You can add the complete html in html component. The CSS needs to be there in html file. After setting the body text in html component lwuit renders some of the style sheets which it supports.
我们无法为所有 LWUIT 组件添加 CSS。只有 HTML 组件允许在 LWUIT 中使用 CSS。如需了解更多信息,请参阅此链接。
We can't add the CSS for all LWUIT components. Only HTML components allows CSS in LWUIT. For more info see this link.