【发布时间】:2013-01-15 13:08:30
【问题描述】:
如何在 java gwt 中画一条水平线,类似于 HTML 中的 '' 标签?我尝试过使用
com.google.gwt.user.client.Element bottomLine = DOM.createDiv();
但不知何故,这在 IE 中不起作用...
【问题讨论】:
如何在 java gwt 中画一条水平线,类似于 HTML 中的 '' 标签?我尝试过使用
com.google.gwt.user.client.Element bottomLine = DOM.createDiv();
但不知何故,这在 IE 中不起作用...
【问题讨论】:
您可以使用 HTML 小部件在页面中添加所需的任何 html
HTML html = new HTML("<hr style=\"width:100%;\" />")
rootPanel.add(html); // or add it inside another widget
或者您可以在 Panel 上使用 css 并定义border-bottom 属性(如果您有一个跨越整个页面的面板)。
【讨论】:
Document.get().createHRElement()?
【讨论】: