自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 JS事件类型-鼠标事件

//感谢杨老师 鼠标事件 * { margin: 0; padding: 0; } var cont1 = document.getElementById("cont1"); var cont2 = document.getElementById("cont2"); //右键菜单事件 document.oncontextm

2018-02-06 00:08:35 240

原创 JS关于分号的使用

第二章,词法结构 2.5可选择的分号: 1:只有在缺少了分号就无法正确解析时,JS才会自动添加分号。换句话讲就是 如果当前语句和随后的非空格字符不能当成一个整体来解析的话,JS就会自动在当且语句结束处填补分号。 JavaScripttreats a line break as asemicolonif the next nonspace character cannot be interp

2018-02-06 22:35:43 1009

原创 eventListener

//感谢杨老师 Document body{ width: 500px; height:500px; background-color: yellow; } #outer{ width: 300px; height: 300px; background-color: green; } #inner{ width: 100px; height:100p

2018-02-06 20:20:12 199

原创 JS-事件类型-UI事件

//感谢杨老师 事件类型-UI事件 * { margin: 0; padding: 0; } body { height: 2000px; background: #ccc; } #box { width: 300px; height: 200px; margin: 100px auto; overflow-y: scroll; background: #fff; bo

2018-02-06 20:16:15 172

原创 表格事件

//感谢杨老师 form document.querySelector('#username').onchange=function(){ alert(this.value) } // document.querySelector('#password').onfocus=function(){ // alert(this.tagName

2018-02-06 20:12:10 302

原创 JS事件类型-键盘事件

//感谢杨老师   键盘事件 #box { position: absolute; top: 0; left: 0; width: 100px; height: 100px; background: #ccc; } var box = document.querySelector("#box"); //当用户按下键盘上的任意键时触发,按

2018-02-06 20:07:51 205

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除