本文整理了Java中com.google.gwt.dom.client.Style.clearFloat()
方法的一些代码示例,展示了Style.clearFloat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Style.clearFloat()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Style
类名称:Style
方法名:clearFloat
[英]Clear the float css property.
[中]清除float css属性。
代码示例来源:origin: stephenh/tessell
@Override
public void clearFloat() {
element.getStyle().clearFloat();
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-library
private void prepareCellPercentStyle(int pos, Widget w) {
Style st = w.getElement().getStyle();
if (percentage == null || percentage.length != columns) {
st.clearFloat();
st.clearWidth();
} else {
int column = pos % columns;
st.setFloat(Style.Float.LEFT);
st.setWidth(percentage[column], Unit.PCT);
if (percentage[column] == 0) st.setDisplay(Display.NONE);
else st.clearDisplay();
}
}
代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-standalone
private void prepareCellPercentStyle(int pos, Widget w) {
Style st = w.getElement().getStyle();
if (percentage == null || percentage.length != columns) {
st.clearFloat();
st.clearWidth();
} else {
int column = pos % columns;
st.setFloat(Style.Float.LEFT);
st.setWidth(percentage[column], Unit.PCT);
if (percentage[column] == 0) st.setDisplay(Display.NONE);
else st.clearDisplay();
}
}
代码示例来源:origin: jqm4gwt/jqm4gwt
private void prepareCellPercentStyle(int pos, Widget w) {
Style st = w.getElement().getStyle();
if (percentage == null || percentage.length != columns) {
st.clearFloat();
st.clearWidth();
} else {
int column = pos % columns;
st.setFloat(Style.Float.LEFT);
st.setWidth(percentage[column], Unit.PCT);
if (percentage[column] == 0) st.setDisplay(Display.NONE);
else st.clearDisplay();
}
}
内容来源于网络,如有侵权,请联系作者删除!