摘要:
1、margin: autodiv { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;}2、transformdiv { position: absolute; top: ... 阅读全文
摘要:
// 各种浏览器兼容var hidden, state, visibilityChange;if (typeof document.hidden !== "undefined") { hidden = "hidden"; visibilityChange = "visib... 阅读全文
摘要:
除了常用的for和while循环外,还有其他几种函数可以快速的处理数组1、forEach() array.forEach(function(currentValue, index, arr), thisValue) 返回值: undefinedvar arr = [10, 20... 阅读全文