2011年3月7日
摘要: 1,自动换行,连续英文.div{white-space:pre-wrap;width:200px;word-wrap:break-word;}div{width:450px;word-wrap:break-word;word-break:break-all;}2,absolute布局/css hack/css文字省略号http://www.o2sky.cn/blog/?p=493,登陆框+背景/网易:http://www.o2sky.cn/blog/?p=34html,body{width:100%;height:100%;overflow:auto;}#div{width:100%;heig 阅读全文
posted @ 2011-03-07 10:43 LcKey 阅读(585) 评论(0) 推荐(0) 编辑
  2011年3月6日
摘要: 2进制:110100100010000var a=23;a必须为2的n次方中数字每个一次加起来的数。&的数必须为2的n次方,形式为1000...必然唯一,2的n次方组合加起来可为a,才返回&的数(a&1)=1;a&2=2;100&2=0;1&2=0;66*2=2; 64+2可用来判断几种可能情况的N种组合情况下用到了哪几个情况。减少算法复杂性return=16+4+... if (returnVal == 16) { // setFullScreen(true); } else { // setFullScreen(false); } if (( 阅读全文
posted @ 2011-03-06 17:55 LcKey 阅读(182) 评论(0) 推荐(0) 编辑