我将在我的UiBinder文件中使用Gwt-Bootstrap。我导入了这个
xmlns:b="urn:import:com.github.gwtbootstrap.client.ui">添加到我的UIBinder文件中
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<link rel="stylesheet" href="{your module name}/css/font-awesome-ie7.css">添加到我的Html文件。但是它不起作用。错误是
Package com.github.gwtbootstrap.client.ui cannot be
resolved发布于 2020-12-21 19:06:16
GWT-Bootstrap必须添加到GWT项目中。如果您使用的是Maven,请添加相应的依赖项:
<dependency>
<groupId>com.github.gwtbootstrap</groupId>
<artifactId>gwt-bootstrap</artifactId>
<version>2.3.2.1-SNAPSHOT</version>
</dependency>然后,继承GWT模块中的GWT-Bootstrap模块(< YourProject >.gwt.xml):
<module>
<inherits name='com.github.gwtbootstrap.Bootstrap' />
...
</module>但是,请注意GWT-Bootstrap已经过时,不再进行维护。我在许多项目中使用Bootstrap和GWT,我认为同时使用它们的最好方法是使用HTML和Bootstrap标准,并将带有Elemental2的HTML元素绑定到GWT。它工作得很好,没有限制,而且它是面向未来的。
https://stackoverflow.com/questions/65391099
复制相似问题