摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>区别</title> <style> div { width: 100px; height: 100px; border: 1px solid black; m 阅读全文
摘要:
DOM事件流(event flow )存在三个阶段:事件捕获阶段、处于目标阶段、事件冒泡阶段。 事件捕获(event capturing): 当鼠标点击或者触发dom事件时(被触发dom事件的这个元素被叫作事件源),浏览器会从根节点 =>事件源(由外到内)进行事件传播。 事件冒泡(dubbed bu 阅读全文
摘要:
<style type="text/css"> .div{ width: 140px; height: 280px; border-radius: 100%; border: 2px solid black; border-left: 140px solid black; position: rel 阅读全文