使用 CSS 设置 GWT 按钮样式 [英] Styling a GWT Button with CSS

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

问题描述

我正在尝试使用 GWT Button 小部件应用 css,但是我可以应用 CSS 渐变,小部件的浮雕"样式仍然存在.我怎样才能删除它?

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?

我的 gwt 应用程序继承了这个主题:

My gwt application is inherting from this theme:

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

Als 已经尝试过:

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

我也尝试添加:

.gwt-Button {}

在页面上加载的主 css 文件中,浮雕样式仍然存在.

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?

推荐答案

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

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天全站免登陆