文本选择问题: css & js

CSS:

 /*Disable browser selection*/
.disableselect
{
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-ms-user-select:none;
-webkit-touch-callout:none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.enableselect {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select:text;
user-select:all;
}

JS:

 var clearSlct= "getSelection" in window ? function(){
window.getSelection().removeAllRanges();
} : function(){
document.selection.empty();
};
上一篇:Beta Round #9 (酱油杯noi考后欢乐赛)PLQ和他的小伙伴们


下一篇:ABAP开发人员未来应该学些什么