如何通过GWT编译保存css类名?(How to preserve css class name through GWT compilation?)

编程入门 行业动态 更新时间:2024-10-24 19:29:00
如何通过GWT编译保存css类名?(How to preserve css class name through GWT compilation?)

如何保留UiBinder文件( *.ui.xml )中使用的css样式名称,并防止它们被混淆为像GEMOY02DD3B这样的GEMOY02DD3B ?

How to preserve css style names used in UiBinder files (*.ui.xml) and prevent them to be obfuscated to something like this GEMOY02DD3B?

最满意答案

使用@external GWT特定的CSS at-rule,后跟类名列表来声明不应混淆的类。

在CssResource的javadoc中记录 。

例如

<ui:style> @external floatingLeft; .floatingLeft { float: left; } </ui:style>

Use @external GWT specific CSS at-rule followed by list of class names to declare classes that shouldn't be obfuscated.

Documented in javadoc of CssResource.

E.g.

<ui:style> @external floatingLeft; .floatingLeft { float: left; } </ui:style>

更多推荐

css,xml,ui,GEMOY,UiBinder,电脑培训,计算机培训,IT培训"/> <meta name="des

本文发布于:2023-08-04 09:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1414089.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:css   GWT   preserve   compilation   class

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!