0

嗨,有没有办法不允许在 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;
}

谢谢!

4

1 回答 1

0

这已经回答了:看这里

-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 和歌剧:

<div id="foo" unselectable="on">...</div>
于 2015-03-26T08:26:28.543 回答