gpt4 book ai didi

gwt - GWT 的 Twitter Bootstrap 不起作用

转载 作者:行者123 更新时间:2023-12-04 22:34:18 25 4
gpt4 key购买 nike

我正在尝试将 Twitter Bootstrap 用于 GWT,并获得与展示 here 相同的漂亮 View 这就是我所做的:

1- 从 git 下载模块

2- 在 pom.xml 中运行包任务

3-在我的项目类路径中包含创建的 jar。

4-继承了我的 project.gwt.xml 文件中的模块

<inherits name="com.github.nyao.bootstrap4gwt.Bootstrap"/>

5-将模块包含在我的根 xml 中
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:m='urn:import:com.clouway.exreport.client.accountcreation.view'
xmlns:t='urn:import:com.github.nyao.bootstrap4gwt.client.ui'
>

<ui:style src="newRegistrationStyle.css"/>
<g:HTMLPanel addStyleDependentNames="{style.mainPanel}">
<div class="{style.headdistance}"/>
<div class="{style.container}">

<g:DecoratorPanel addStyleDependentNames="{style.decoratorPanel}">

<g:VerticalPanel addStyleDependentNames="{style.verticalPanel}}">

<m:AccountEditor ui:field="accountEditor"/>

<!--<g:Button ui:field="create" text="create"/>-->
<t:Button type="Success" text="sing in"/>
<g:Label ui:field="errorsLabel"/>
...

</ui:UiBinder>

但是什么也没发生。我有普通的文本框和普通的按钮。

enter image description here
我看了看 this教程非常好,这家伙做对了,他的应用程序看起来非常漂亮。我查看了他的代码,但没有找到任何理由说明我的外观仍然正常,而且他的视野很好。提前感谢您的帮助

最佳答案

而不是使用 bootstrap4gwt 尝试使用 gwtbootstrap与前者相比,它要好得多,并且具有更多的组件。该论坛在 gwtbootstrap 中也非常活跃。

关于gwt - GWT 的 Twitter Bootstrap 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11168790/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com