【发布时间】:2012-10-04 02:30:50
【问题描述】:
我在我的 tabris 应用程序中应用了一个样式表,其中包含一个标签的自定义变体。
在应用程序的配置中注册了样式表: application.addStyleSheet("org.eclipse.rap.rwt.theme.Default", "/theme/tourfinder.css");
为标签添加了自定义变体 titleLabel.setData(RWT.CUSTOM_VARIANT, "mylabel" );
添加了包含以下内容的 css 资源: 标签.mylabel { 颜色:蓝色; 字体:32px Helvetica, Arial, Verdana, "Lucida Sans", sans-serif; }
在浏览器中标签渲染得很好(蓝色和大字体),但是当我使用 android 模拟器时,标签的自定义变体没有应用。
知道我做错了什么吗?
【问题讨论】: