摘要: 1 到达页面顶部 2 方法1: 3 在body标签下面放 4 在页面底部放返回顶部 5 6 方法2:在需要返回顶部的地方放返回顶部 7 ps:scrollto(x,y)x,y表示左上角的偏移量 8 方法3: 9 不同于前面2个,缓慢移动到顶部。10 gotop放在页面中需要的位置11 js 在下... 阅读全文
posted @ 2015-06-02 21:04 Debugor 阅读(556) 评论(0) 推荐(0)
摘要: html (结构很重要,包裹) css.a{width: 200px;height: 200px;border: 1px solid #000;position: absolute;}.b{width: 100px;height: 100px;border: 1px solid #00... 阅读全文
posted @ 2015-06-02 17:17 Debugor 阅读(753) 评论(0) 推荐(0)