我知道我可以用
<set-configuration-property name="CssResource.style" value="pretty"/> 使我的类名从css显示在我的resources文件夹中。但是,我无法在ui.binder中使用内联样式来做到这一点。例如,我无法让下面的css类名与非模糊类名一起出现。
<ui:style field="style">
.alignRight {float:right};
.displayNone {display:none};
.ack { background-color: grey; border: solid 2pk darkgray; float: right;}
.fullwidth { left: 0px; right: 0px;}
</ui:style>有什么建议吗?谢谢。
发布于 2014-05-15 06:37:09
如果希望这些类始终以其名称可用,而不被gwt编译器修改,请将它们声明为外部类。
<ui:style field="style">
@external .alignRight, .displayNone, .ack, .fullwidth;
.alignRight {float:right};
.displayNone {display:none};
.ack { background-color: grey; border: solid 2pk darkgray; float: right;}
.fullwidth { left: 0px; right: 0px;}
</ui:style>https://stackoverflow.com/questions/23666480
复制相似问题