css事件

 document.getElementById(父元素中元素的ID).contains(event.toElement)  此句意思: 判断元素是否存在父元素中。
原文地址:https://www.cnblogs.com/manyiString/p/CSS.html