【发布时间】:2014-08-31 11:52:01
【问题描述】:
我在 gwt 中有一个 UIBinder java 类,其中包含一个带有一些文本的标签,例如
Label img = new Label();
img.setText("<img src=h.png></img>") or some other Html tag like div
并在 HTMLPanel 中添加此标签
HTMLPanel html = new HTMLPanel;
html.add(img,"img");
现在我在 uibinder xml 中有一个表格,例如
<table align="center" cellspacing="20px">
<tr>
<td>image</td>
<td id="image"></td>
</tr>
<table>
但在这里我得到一个字符串
"<img src=h.png></img>"
不是图片,请有人帮助我..
【问题讨论】:
标签: gwt