我正在学习 GWT 教程 ( GWT Tutorial)
有关自动资源包含的部分说:
For StockWatcher, you'll follow the preferred strategy. Rather than put links to the style sheets in the HTML host page, you'll use the module XML file. Then, when you compile StockWatcher, the GWT compiler will bundle all the static resources required to run your application including the style sheets. This mechanism is called Automatic Resource Inclusion.
但是,他们似乎将样式表放在托管页面而不是模块 XML 文件中。
这是一个错误吗?
最佳答案
那段肯定已经过时了,应该删除/替换。您可以将链接到的当前版本与旧的 1.5 版本进行比较 https://developers.google.com/web-toolkit/doc/1.5/tutorial/style ,他们仍然使用 <stylesheet>
模块 XML 文件中的元素。
关于css - GWT Stockwatcher 教程 - 自动资源包括,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15597511/