Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何提高Gwt水平面板台面高度_Gwt - Fatal编程技术网

如何提高Gwt水平面板台面高度

如何提高Gwt水平面板台面高度,gwt,Gwt,尝试使用以下代码设置水平面板的桌子高度。下面的代码有什么问题吗。当我在fire fox的fire bug模式下运行它时,我知道高度应用于HTML的'TD'元素,而不是HTML的'TABLE'元素 setCellHeight(resetButton, "400") 我认为setCellHeight()方法适用于表a中的单元格,而不是表,因此高度应用于HTML的“TD”元素而不是“table”元素是正常的 要设置表的高度,可以使用addStyleName()方法通过css设置高度 在java代码中

尝试使用以下代码设置水平面板的桌子高度。下面的代码有什么问题吗。当我在fire fox的fire bug模式下运行它时,我知道高度应用于HTML的'TD'元素,而不是HTML的'TABLE'元素

setCellHeight(resetButton, "400")
我认为setCellHeight()方法适用于表a中的单元格,而不是表,因此高度应用于HTML的“TD”元素而不是“table”元素是正常的

要设置表的高度,可以使用addStyleName()方法通过css设置高度

在java代码中:

table.addStyleName("table");
在css中:

 .table{
   height: 400px;
   /*other wished styling*/
  }

我相信你可能在找

horizontalPanel.setHeight("400px")