学习资料

http://blog.haohtml.com/archives/8125
display:inline;放在li里面可以并排显示display:inline 的作用是设置对象做为行内元素显示
ie和google  计算尺寸大小是不一样的




http://doc.hz.netease.com/pages/viewpage.action?pageId=15826977


http://www.cnblogs.com/mz121star/archive/2012/11/01/javascript_preloadimages.html
js图片的预加载功能


http://www.cnblogs.com/mingmingruyuedlut/archive/2011/10/12/2208550.html
遍历table的所有单元格


http://www.cnblogs.com/yunfour/archive/2013/04/07/3006473.html 源节点




浏览器区别的传参区别
hoverList.rows[i].cells[j].attachEvent("onmouseover",hoveUp(hoverList.rows[i].cells[j]));其中的this是windows对象
addEventListener:直接使用this可以引用被触发元素




getElementsByClassName()是HTML5 新增的DOM API。IE8以下不支持


http://www.cnblogs.com/yubinfeng/archive/2010/11/02/1867386.html






-moz代表firefox浏览器私有属性
-ms代表IE浏览器私有属性
-webkit代表chrome、safari私有属性
-o代表opera私有属性
有些事,你把它藏在心里或许会更好,。等时间长了,回过头去看它,也就变成了故事。




IE里面只有 window.event.srcElement
FF里面只有 event.target
 if(window.event.srcElement==undefined)
{
e.target=window.event.srcElement;
}
else
{
e.target=event.target;
}




this.style.background="#ececec";
var next;
var pre;
if(window.event)
{
next=this.nextSibling;
pre=this.previousSbiling;
}
else
{
next=this.nextElementSibling;
pre=this.previousElementSibling;
}




appendChild() 方法:可向节点的子节点列表的末尾添加新的子节点。语法:appendChild(newchild)


insertBefore() 方法:可在已有的子节点前插入一个新的子节点。语法 :insertBefore(newchild,refchild)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值