简体   繁体   English

我是否可以仅将Twitter-Bootstrap样式添加到原始GWT组件

[英]Can I add Twitter-Bootstrap styles only to original GWT components

I need to add Twitter's Bootstrap styles to existing GWT component... 我需要将Twitter的Bootstrap样式添加到现有的GWT组件中......

I found more than one project but all of them creates new custom components for that purpose... 我找到了不止一个项目,但所有项目都为此创建了新的自定义组件......

I need to stick with GWT standard components and have my app L&F looks like TBootstrap. 我需要坚持使用GWT标准组件,让我的应用程序L&F看起来像TBootstrap。

Thanks. 谢谢。

You will have a great job to do overriding GWT's default css. 你将有一个很好的工作来覆盖GWT的默认CSS。 Your starting point may be the Developer's Guide - Client Bundle . 您的出发点可能是开发人员指南 - 客户端套件

Some widget does not accept Bundles, so you may have too to override GWT css in the bootstrap html file. 有些小部件不接受Bundles,所以你也可能在bootstrap html文件中覆盖GWT css。

I believe that you can hack the basic styles with jQuery or overriding CSS styles, but the responsiveness, topbar and other things, I believe thats is pretty impossible... 我相信你可以使用jQuery破解基本样式或覆盖CSS样式,但响应性,顶部栏和其他东西,我相信那是非常不可能的......

You can take a look at GWT-Bootstrap . 你可以看看GWT-Bootstrap

Hope it helps.. 希望能帮助到你..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM