0
我使用ImageLoadingCell將圖像加載到表格中,ImageLoadingCell只是使用圖像的URL。有沒有辦法設置圖像的大小,所以瀏覽器會使圖像的大小一致?GWT ImageLoadingCell - 設置特定尺寸
我使用ImageLoadingCell將圖像加載到表格中,ImageLoadingCell只是使用圖像的URL。有沒有辦法設置圖像的大小,所以瀏覽器會使圖像的大小一致?GWT ImageLoadingCell - 設置特定尺寸
Developer's Guide - Creating Custom Cells
,您可以更改默認模板@Template("<img src=\"{0}\"/>")
的渲染器,例如@Template("<img src=\"{0}\" height=\"100px\" width=\"100px\"/>")
, 看到文件ImageLoadingCell.class行數70