GWT TabLayoutPanel 不允许在选项卡上选择文本

GWT TabLayoutPanel not allow text selection on tabs

您好,有没有办法不允许在 GWT TabLayoutPanel(和其他 gwt 小部件)的选项卡上选择文本?

我尝试使用 css,例如:

.gwt-TabLayoutPanel {
    user-select: none;
}

.gwt-TabLayoutPanel .gwt-TabLayoutPanelTabs {
    user-select: none;
}
.gwt-TabLayoutPanel .gwt-TabLayoutPanelContent {
    user-select: none;
} 

.gwt-TabLayoutPanel .gwt-TabLayoutPanelTab {
    user-select: none;
} 

.gwt-TabLayoutPanel .gwt-TabLayoutPanelTab-selected {
    user-select: none;
}

谢谢!

已经回答了:look here

-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;

对于 IE < 10 和 opera:

<div id="foo" unselectable="on">...</div>