摘要: 数组中的length——它不是只读的,通过设置这个属性,可以从数组的末尾移除项或添加项。var arr = ["a","b","c"];//末尾删除arr.length = 1; // ["a"]arr.length = 0; // []//末尾添加arr[arr.length] = "a"; //["a"]arr.length = 3; //这时arr = ["a",undefined,undefined]ps:数组最多可以包含4294967295个项。 阅读全文
posted @ 2014-03-29 17:38 开心果丶 阅读(252) 评论(0) 推荐(0)
摘要: 加入收藏夹:function AddFav() { try{ window.sidebar.addPanel(window.title, window.location.href,'');//firefox }catch(e){ try{ external.AddToFavoritesBar(window.title, window.location.href,''); }catch(e){ try{ w... 阅读全文
posted @ 2014-01-06 16:07 开心果丶 阅读(212) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-05-31 11:30 开心果丶 阅读(2) 评论(0) 推荐(0)
摘要: 转(兼容所有常用浏览器):.lessPicBox(@width,@height){width:@width;height:@height;display:block;overflow:hidden;*font-family:arial;*font-size:@height/1.1;text-align:center;line-height:@height-3;vertical-align:middle;img{vertical-align:middle; max-width:@width; max-height:@height;}} 阅读全文
posted @ 2013-02-22 13:40 开心果丶 阅读(288) 评论(0) 推荐(0)
摘要: css实现粉色背景块,效果如下:css: .listbox { position: relative; width: 1000px; margin: 20px auto; overflow: hidden; } .listbox ul { float: left; width: 240px; margin-right: 10px; background: #ffebf9; ... 阅读全文
posted @ 2013-02-22 11:17 开心果丶 阅读(782) 评论(3) 推荐(0)