用CSS设计GWT按钮 [英] Styling a GWT Button with CSS

查看:86
本文介绍了用CSS设计GWT按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用GWT Button 小部件应用css,但是我可以应用CSS渐变,小部件的浮雕样式仍然存在。我该如何删除它?



我的gwt应用程序正在接受这个主题:

 <继承name ='com.google.gwt.user.theme.clean.Clean'/> 

Als尝试过:

 < inherits name ='com.google.gwt.user.theme.standard.Standard'/> 

我也尝试添加:

 
$ p





$ b $在主要的css文件中加载在页面上,但浮雕风格仍然存在。



任何人都知道如何去除浮雕风格?

解决方案

为了避免使用GWT默认样式,我只使用!important 标记在我的CSS文件中。您会在这里找到一个这样做的示例:删除由GWT生成的绝对位置。祝你好运!


I'm trying to apply css with GWT Button widget, however I can apply CSS gradient, the "embossed" style of the widget is still there. How can I remove that?

My gwt application is inherting from this theme:

<inherits name='com.google.gwt.user.theme.clean.Clean'/>

Als have tried:

<inherits name='com.google.gwt.user.theme.standard.Standard'/>

I also have tried adding:

.gwt-Button {}

In the main css file that is loaded on the page however the embossed style is still there.

Anyone knows how to remove the embossed style?

解决方案

To avoid using GWT default style, I just use !important tag in my CSS file. You'll find here an example of doing so : Remove absolute position generated by GWT. Good luck!

这篇关于用CSS设计GWT按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆