<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body {
font-family: "Microsoft YaHei", serif;
}
body, dl, dd, p, h1, h2, h3, h4, h5, h6 {
margin: 0;
}
ol, ul, li {
margin: 0;
padding: 0;
list-style: none;
}
img {
border: none
}
</style>
</head>
<body>
<div id="wrap">123</div>
<script>
// 阻止鼠标右键的点击事件
document.oncontextmenu = function (ev) {
console.log(1);
// 阻止语句
ev.preventDefault()
};
// 这个就是css中的user-select:none
document.onselectstart = function (ev) {
// ev.preventDefault();
// 低版本ie需要用return false禁止不支持上边那个
return false
}
</script>
</body>
</html>
Python3Turtle