1. 事件冒泡 同种事件同时实现时 子元素优先触发,如以下代码: 点击btn时相对于也点击了整个文档,这是会先打印btn点击,再打印doc点击,在console.log("b...
IP属地:北京
1. 事件冒泡 同种事件同时实现时 子元素优先触发,如以下代码: 点击btn时相对于也点击了整个文档,这是会先打印btn点击,再打印doc点击,在console.log("b...
jQuery 选取(查询)HTML元素,并对它们执行操作基础语法 : $(selector).action()原则 : Get first Set all 文档就绪函数 $(...
一 .背景 1 . background-color 背景色 值描述color_name规定颜色值为颜色名称的背景颜色(比如 red)。hex_number规定颜色值为十六...
原声移动端触屏事件touch分为3个事件: touchstart 触摸开始touchmove 触摸移动touchup 触摸结束. 对于触摸事件不能像鼠标点击等事件一...
居中: 自己居中用margin 内容居中用text-align: center; line-height:height; 多行文字垂直居中: 利用display:table转...