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

时间:2015-03-25 20:06:13

标签: css gwt gwt-tablayoutpanel

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

谢谢!

1 个答案:

答案 0 :(得分:0)

已经回答: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和歌剧:

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