<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>contenteditable</title>
</head>
<body>
<div contenteditable style="border:1px solid; width:600px; min-height: 300px">
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1564893892182&di=a13fd00a7e9b6a419bc5eaeed36c93c1&imgtype=0&src=http%3A%2F%2F06.imgmini.eastday.com%2Fmobile%2F20171130%2F20171130032840_40b6bd9db5b3e14d0eb89d42235f1df3_4.jpeg" />
</div>
</body>
</html>
可以打開任意一個網站,在其body標籤上加上contenteditable屬性,即可對該頁面的內容進行編輯,如下圖