09 2014 档案

摘要:1、根据浏览器的性能 var is = { ff: window.globalStorage, ie: document.all && !window.opera, ie6: !window.XMLHttpRequest, ie7: document.all && window.XMLHttpReq... 阅读全文
posted @ 2014-09-26 10:58 低调的大白兔 阅读(149) 评论(0) 推荐(0)
摘要:1、fiefox:DOMMouseScroll detail detail*(-40)=wheelDelta 除了firefox之外:mousewheel wheelDelta值为+-120 未来浏览器:wheel deltaX deltaY delta... 阅读全文
posted @ 2014-09-25 21:38 低调的大白兔 阅读(258) 评论(0) 推荐(0)
摘要:position:1、absolute:绝对定位,相对于窗体或是父元素,其不是文档流的一部分2、relative:相对定位,仍是文档流的一部分,其原有位置会被 保留,3、fixed;相对于窗口的定位,不属于文档的一部分4、static;默认的 阅读全文
posted @ 2014-09-23 08:39 低调的大白兔 阅读(120) 评论(0) 推荐(0)
摘要:1、getElementById()//ie8下不区分大小写 getElementsByName()//name属性相比于Id可以不唯一,且其只在表单。表单元素。img 。iframe中有用,返回一个nodelist数组、 getElementsByTagName()//返回数组getElemen... 阅读全文
posted @ 2014-09-18 11:23 低调的大白兔 阅读(182) 评论(0) 推荐(0)
摘要:1、在页面中载入新页面:location.assgin(""); location.replace();后者会删除以前的页面记录location.reload();//重新载入当前页面location="#middle";//滚动到文档的相应位置2、window的history history.b... 阅读全文
posted @ 2014-09-18 08:14 低调的大白兔 阅读(139) 评论(0) 推荐(0)
摘要:1、创建document对象,解析解析web页面,此时document。readyState=“loading”2、下载脚本并执行,同时解析文档。3、文档解析完成,document。readyState=“interactive”4、浏览器触发DOMContentLoaded事件。进入异步事件驱动阶... 阅读全文
posted @ 2014-09-16 09:45 低调的大白兔 阅读(114) 评论(0) 推荐(0)