【问题标题】:CSS Expression to GSS for Conditional Property in GWT?GWT中条件属性的CSS表达式到GSS?
【发布时间】:2015-01-31 05:51:04
【问题描述】:

如何将以下 GWT CSS 部分转换为 GWT GSS?

@if (test.mobile.client.Parameter.getWindowWidth() >= 414) {
 .previewBox {
    width: 33.333333%;
 }
}

【问题讨论】:

    标签: java html css gwt google-closure


    【解决方案1】:
    @if (eval("test.mobile.client.Parameter.getWindowWidth() >= 414")) {
        .previewBox {
            width: 33.333333%;
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-27
      相关资源
      最近更新 更多