如何在eclipse中为GWT项目添加静态内容 [英] How to add static content to a GWT project in eclipse
本文介绍了如何在eclipse中为GWT项目添加静态内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何快速提示添加静态内容到
a GWT项目(例如:图像)的文章
any quick hint to an article for adding static content to a GWT project (ex:images)
关于
推荐答案
您基本上有两种方法:
你可以将您的图像拖放到项目的战争文件夹中。如果要显示该图像,您只需创建一个HTML对象,并使用setContent() - 函数来显示它(使用从HTML获得的img标签)
You can just drag and drop your image into the war-folder of your project. If you want to display that image you would just create an HTML object and use the setContent()-function to display it(using the img-tag you know from HTML)
我会使用数字1,因为它使用css精灵优化应用程序的加载时间。
I would use number 1 because it uses css sprites to optimize the loading time of your application.
这篇关于如何在eclipse中为GWT项目添加静态内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文