4
你好我已經使用這個http://www.benlesh.com/2013/02/angular-js-scrolling-to-element-by-id.html滾動到元素,但有沒有辦法設置anchorScroll的偏移?就像我想將元素居中放置在視圖中間一樣?滾動到anchorScroll後
你好我已經使用這個http://www.benlesh.com/2013/02/angular-js-scrolling-to-element-by-id.html滾動到元素,但有沒有辦法設置anchorScroll的偏移?就像我想將元素居中放置在視圖中間一樣?滾動到anchorScroll後
滾動位置偏移 - (窗口高度)/ 2
發現dolution的問題:http://stackoverflow.com/a/13184714/2207996 –