Twitter bootstrap 如何导入Gwt引导?

Twitter bootstrap 如何导入Gwt引导?,twitter-bootstrap,bootstrap-4,gwt,uibinder,Twitter Bootstrap,Bootstrap 4,Gwt,Uibinder,我将在UiBinder文件中使用Gwt引导。我进口了这个 xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"> 到我的UIBinder文件和这个 <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <link rel="stylesheet" h

我将在UiBinder文件中使用Gwt引导。我进口了这个

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">

必须将GWT引导添加到GWT项目中。如果您使用的是Maven,请添加相应的依赖项:

<dependency>
  <groupId>com.github.gwtbootstrap</groupId>
  <artifactId>gwt-bootstrap</artifactId>
  <version>2.3.2.1-SNAPSHOT</version>
</dependency>

com.github.gwtbootstrap
gwt引导
2.3.2.1-快照
然后,在GWT模块(.GWT.xml)中继承GWT引导模块:


...

但是,请注意GWT引导已经过时,不再维护。我在许多项目中使用Bootstrap和GWT,我认为最好的方法是使用HTML和Bootstrap标准,并将HTML元素与Elemental2绑定到GWT。它工作得很好,没有限制,而且是未来的证明。

它不起作用。但是如何使用引导、html和gwt呢?你能解释一下吗?你忘了把GWT引导添加到你的项目中吗?我已经编辑了我的答案。如果它回答了您的问题,请接受此答案。您应该尝试一下Domino UI:
<dependency>
  <groupId>com.github.gwtbootstrap</groupId>
  <artifactId>gwt-bootstrap</artifactId>
  <version>2.3.2.1-SNAPSHOT</version>
</dependency>
<module>
    <inherits name='com.github.gwtbootstrap.Bootstrap' />
    ...
</module>