使用下面的jquery代码:
(function($) {
$(function() {
$(document).bind("selectstart",function(){return false;});
$(document).bind("contextmenu",function(e) {
return false;
});
。。。。
Firefox下面,不支持selectstart事件,所以不起作用。使用CSS3解决:
body{
-moz-user-select:none;
}