contenteditable 属性规定元素内容是否可编辑

在div上加上 contenteditable="true/false" 当然默认是不可编辑的,添加上contenteditable="true"就允许用户编辑了