上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: Document 点击移动盒子 会动的盒子 小盒子 阅读全文
posted @ 2019-10-20 14:11 晴天宝宝i 阅读(171) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Doc 阅读全文
posted @ 2019-10-19 22:47 晴天宝宝i 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 1.立即执行函数,不需要调用,立马就能自己的执行函数(两种写法) 1.( function(){}() ); 或者 ( function(){} ) (); 2.写法 也可以传递参数进来 3.立即执行函数最大的作用就是 独立创建了一个作用域,里面的所有变量都是局部变量 避免了命名冲突的问题。 方式一 阅读全文
posted @ 2019-10-19 21:06 晴天宝宝i 阅读(237) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Doc 阅读全文
posted @ 2019-10-19 18:58 晴天宝宝i 阅读(183) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Doc 阅读全文
posted @ 2019-10-18 21:23 晴天宝宝i 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1. Solarized Custom 设置颜色主题 代码字体颜色 2. Auto Close Tag 自动关闭标签 3.Auto Rename Tag 自动更改标签名 4.Bracket Pair Colorizer 括号颜色 用于区分不同行代码 5.CSS Peek CSS跳转到样式链接 6.o 阅读全文
posted @ 2019-10-18 10:58 晴天宝宝i 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.元素偏移量 offset 系列 1.1 offset 就是偏移量,使用 offset 系列相关属性可以 动态 得到该元素的位置(偏移)、大小等。 注意: 1.获得元素距离带有定位父元素的位置 2.获得元素自身的大小(宽度和高度) 3.返回的数值都不带单位 1.2 offset 系列常用属性(元素 阅读全文
posted @ 2019-10-17 23:36 晴天宝宝i 阅读(168) 评论(0) 推荐(0) 编辑
摘要: window 对象给我们提供了一个 history 对象,与浏览器历史记录进行交互,该对象包含用户(在浏览器窗口中)访问过的 URL history对象中的方法: history.back( ); 可以后退功能 history.forward( ); 前进功能 history.go( 参数 ); 前 阅读全文
posted @ 2019-10-17 21:29 晴天宝宝i 阅读(124) 评论(0) 推荐(0) 编辑
摘要: navigator 对象包含有关浏览器的信息,它有很多属性,我们最常用的是 userAgent ,该属性可以返回由客户机发送服务器的 user-agent 头部的值 下面前段代码可以判断用户使用哪个终端打开的页面,实现跳转 if( navigator.userAgent.match( / (phon 阅读全文
posted @ 2019-10-17 21:21 晴天宝宝i 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.URL 统一资源定位符 是互联网上标准资源的地址,互联网上的每个文件都有一个唯一的 URL 。 URL的一般语法格式为: protocol:// host [:port] / path / [?query] #fragment http: // www.itcast.cn / index.htm 阅读全文
posted @ 2019-10-17 21:09 晴天宝宝i 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页