- 博客(3)
- 收藏
- 关注
原创 id锚点定位并加上偏移量的
通常锚点定位我们用location.href = "#elementid";但当有固定的header时,有可呢会被header覆盖。解决方法:页面将滑动至指定元素id处$("a").click(function(){ var index = $("a").index(this); $("html,body").animate({scrollTop:$("#eleme
2017-07-24 22:22:52 4415
原创 The type java.lang.Object cannot be resolved解决方法
java.lang.Object是JRE的问题。Errors:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files The project was not built since its
2017-06-07 10:21:31 2089
原创 首先执行js再进行href跳转
方法是在js里面写href值 function func(obj){ var a = getElementById(obj); a.href = “#tab2”; a.style.visibility = “visible”;}
2017-04-16 12:31:22 1477
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人