05 2016 档案

摘要:.phcolor{ color:#999;}//css样式 function isPlaceholer(){ var input = document.createElement("input"); return "placeholder" in input; }; function placeho 阅读全文
posted @ 2016-05-30 23:08 稍微有点色 阅读(3248) 评论(0) 推荐(0)
摘要:可以在需要的时候,在某个元素下面放一个长或宽为1px,或者你需要的border宽度的 div ,再在这个div 上设置border。按需要调整这个div的位置。 阅读全文
posted @ 2016-05-13 00:06 稍微有点色 阅读(454) 评论(0) 推荐(0)
摘要:$('#shang').click(function(){ $('html,body').animate({scrollTop: '0px'}, 800); }); 不能写成$(window).animate().大概是因为window是窗口对象,无法来移动。而html,body是DOM对象,可以移 阅读全文
posted @ 2016-05-11 22:57 稍微有点色 阅读(306) 评论(0) 推荐(0)
摘要:由于判断时的执行顺序,不要写成if(a<b<c)这种形式,很有可能得出的结果与我们想像的结果不一致,要写成if(a<b && b<c)! 阅读全文
posted @ 2016-05-11 22:52 稍微有点色 阅读(610) 评论(0) 推荐(0)
摘要:var stop; $(this).bind("mouseover",function(){ stop= setTimeout(function(){ },200); }).bind("mouseout",function(){ clearTimeout(stop); }) 阅读全文
posted @ 2016-05-10 21:12 稍微有点色 阅读(277) 评论(0) 推荐(0)
摘要:目前 只搜索到 用 $("img wraper").stop(true,true).放在移动函数开始的开头,来解决。大概是因为浏览器缓存的问题。我会持续跟进。JS原理。晚安。 我擦,今天从新看了一下,没有解决问题啊!!! 今天在大巴上想了一下,很快就想到了解决的逻辑思路。想做出京东1F 的第一页面有 阅读全文
posted @ 2016-05-04 00:24 稍微有点色 阅读(519) 评论(0) 推荐(0)