【发布时间】:2014-07-04 15:15:32
【问题描述】:
有没有办法编辑自定义的 css 类来启用这些 css 样式规则 http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/MenuBar.html
我目前通过以下代码创建了我的 MenuBar:
MenuBar menuButton = new MenuBar();
menuButton.addStyleName(masterPanel.getmenuBar());
使用接口获取css类:
interface Style extends CssResource {
String menuBar();
String action();
}
我有一个只能编辑我的菜单栏的 css 类:
.menuBar {
cursor: default;
text-align: center;
background: transparent;
border: none;
color: white;
text-shadow: none;
font-size: 16px;
}
有没有办法我可以访问如下样式:
.gwt-MenuBar-horizontal
.gwt-MenuBar-vertical
.gwt-MenuBar .gwt-MenuItem
.gwt-MenuBar .gwt-MenuItem-selected
.gwt-MenuBar .gwt-MenuItemSeparator
.gwt-MenuBar .gwt-MenuItemSeparator .menuSeparatorInner
.gwt-MenuBarPopup .menuPopupTopLeft
【问题讨论】: