ruibin 很简单的,只需要添加属性就可以了。代码你可以参考: 你是我的小苹果 这是一个可以编辑的提示框 var showL = document.querySelector('.showL'), editable = document.querySelector('.editable'); showL.onmouseover = function() { editable.style.display = 'block'; } showL.onmouseout = function() { editable.style.display = 'none'; }