摘要:
鼠标事件 <style> body{ margin: 0; } .div0 { width:100px; height:100px; position: relative; left:100px; top:800px; /* margin: 100px; */ } .div1 { width: 50 阅读全文
摘要:
事件基础 document.onclick=function(){ } document.addEventListener("click",clickHandler);//事件侦听对象.侦听器("事件类型",事件回调函数) function clickHandler(e){ } // 阅读全文