摘要: 卓越网的代码,参考学习。function setCookie(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.... 阅读全文
posted @ 2014-04-20 14:49 shrekuu 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 打开微博,把下面代码贴到控制台运行即可去掉本页的。 有时,每页需要多执行几次。遇到验证码就填一下。var del_arr = document.querySelectorAll('.delBtn');for (var i = 0; i <= del_arr.length; i++) { del... 阅读全文
posted @ 2014-04-19 11:30 shrekuu 阅读(153) 评论(0) 推荐(0) 编辑
摘要: function delAttention() { var arr = $('.delAttention'); for (var i = 0, len = arr.length; i < len; i++) { $(arr[i]).trigger('click'); ... 阅读全文
posted @ 2014-04-05 17:02 shrekuu 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 左边一个图,右边文字。1.左侧图片宽度不定2.右侧文字宽度不固定3.父级元素宽度不固定如图: 1 2 3 4 5 Document 6 42 43 44 45 46 47 the title of the item48 the description of the item. the description of the item. the description of the item. the description of the item. the descriptio... 阅读全文
posted @ 2014-03-09 18:40 shrekuu 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 默认 box-sizing: content-box; 会把容器撑破;只是为了避免写一堆 box-sizing;而且即使写了 IE 67还不支持,样式乱死了;上代码: Document 我的宽度自动就是 960px 哟。 the end; 阅读全文
posted @ 2014-03-07 19:55 shrekuu 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 之前看到QQ群里讨论淘宝首页上的一个设计。当鼠标放到某个元素上的时候这个元素周围的边框改变颜色,不可以用表格。我折腾了一下,效果一样,改天看看淘宝是不是也是这么弄的。 taobao el el el el el 阅读全文
posted @ 2013-12-18 17:18 shrekuu 阅读(619) 评论(5) 推荐(0) 编辑
摘要: normalize.css http://necolas.github.io/normalize.css/ 阅读全文
posted @ 2013-06-06 19:09 shrekuu 阅读(2638) 评论(1) 推荐(2) 编辑