禁止img图片拖动在新窗口打开
JS
function imgdragstart(){return false;} for(i in document.images)document.images[i].ondragstart=imgdragstart;
CSS(webkit兼容)
draggable="false"
作者:oospace
邮箱:oospace@foxmail.com
欢迎转载,请注明链接!
JS
function imgdragstart(){return false;} for(i in document.images)document.images[i].ondragstart=imgdragstart;
CSS(webkit兼容)
draggable="false"