css - GWT Stockwatcher 教程 - 自动资源包括

标签 css gwt stylesheet

我正在学习 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/

相关文章:

html - 缩短我用于 DIV 的代码

css - 演示者节目中的 GWT 调用方法

html - 如何在jsp中为body标签使用外部CSS

javascript - 将列表项与另一个子元素重叠

jquery - Scrollnav.js 侧边栏无法激活

html - 按钮背景使用 :before not showing unless content property has a value

java - 当 div 已包含在另一个小部件中时,如何用小部件替换它?

gwt - 如何在gwt中扩展树?

css - 如何设置 Reddit 子组的样式以使用 RTL 语言?

css - 防止 Bootstrap 按钮组中断